In my syntax parsing scenario, I need some external information to explain the current AST. It would be very convenient if I could acces/modify a context in $lexer during action, but after looking through the documentation, there seems to be no way to do this.
In my syntax parsing scenario, I need some external information to explain the current AST. It would be very convenient if I could acces/modify a context in
$lexer
during action, but after looking through the documentation, there seems to be no way to do this.Case like I wanna do:
Generally to hope
lexer
has the ability to store context, Is there any way to do this?