source-academy / py-slang

Python sublanguage for SICP
Apache License 2.0
0 stars 0 forks source link

special identifiers not treated as normal identifiers in language parser #9

Closed Fidget-Spinner closed 1 year ago

Fidget-Spinner commented 1 year ago

E.g. This works:

add_one = lambda: a

But this doesn't

add_one = lambda : None

Because None is treated as a special identifier at the token level. So the parser should accept special identifiers as well in place of normal ones.