Skip to content
Advertisement

Tag: lexer

Proper way to handle ambiguous tokens in PLY

I am implementing an existing scripting language in part as a toy project and in part so that I can write my own implementation of the program that uses the language. One of the issues I’m running into is that I have a few constructs that overlap in terms of specification but are more clear when used: This mostly works,

Advertisement