tranformation MP_QSTR__slash_lib into /lib

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
Online
User avatar
Roberthh
Posts: 1368
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

tranformation MP_QSTR__slash_lib into /lib

Post by Roberthh » Sat Jan 26, 2019 7:18 am

Which setting/step in creating binaries causes during the translation of e.g. MP_QSTR__slash_lib into /lib the mapping of "_slash_" into "/"? I assume it is a singe setting/flag, but searching did not reveal the right place.

stijn
Posts: 321
Joined: Thu Apr 24, 2014 9:13 am

Re: tranformation MP_QSTR__slash_lib into /lib

Post by stijn » Sat Jan 26, 2019 9:00 am

makeqstrdata.py processes the compiler-generated files and has

Code: Select all

codepoint2name[ord('/')] = 'slash'

Post Reply