dabeaz / sly

Sly Lex Yacc
Other
816 stars 107 forks source link

Are there any way to do conditional lexing? #73

Open nikitos1550 opened 3 years ago

nikitos1550 commented 3 years ago

Are there anything like flexs start states or plys states? Or maybe some other way should be used to archive similar behaviour?

jpsnyder commented 2 years ago

There is a way to change lexing states, but it is only documented in the changelog: https://github.com/dabeaz/sly/blob/master/CHANGES#L126

Is that what your asking about?