You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we want to change lexer states according to parser states, e.g. according to certain token combination patterns, it is not possible to do so because parse method of Parser class uses tokens that be produced from Lexer's tokenize method.
To be exact, I would like to implement similar behavior in asn2wrs.py that changes lexer state after WITH SYNTAX or in specific states, e.g. p_ObjectSet, p_ParameterList... .
Is it any alternative way to do it ?
Thanks.
The text was updated successfully, but these errors were encountered:
If we want to change lexer states according to parser states, e.g. according to certain token combination patterns, it is not possible to do so because
parse
method ofParser
class usestokens
that be produced fromLexer
'stokenize
method.To be exact, I would like to implement similar behavior in asn2wrs.py that changes lexer state after
WITH SYNTAX
or in specific states, e.g.p_ObjectSet
,p_ParameterList
... .Is it any alternative way to do it ?
Thanks.
The text was updated successfully, but these errors were encountered: