Closed DoctorBracewell closed 2 years ago
add_parse_listener
is available via DerefMut<Target=BaseParser<_>>
that is implemented on every parser, so i am not sure what exactly do you mean. Is there a particular error happening when you try to call it?
Ah, for some reason it was the intellisense in my IDE not picking up that function, even though it still compiles and runs. Do you know why that might be the case?
¯_(ツ)_/¯ it works in intellij for me
Weird, VSCode isn't too happy about it. Oh well!
The code in
my_test.rs
indicates that a parser should have anadd_parse_listener
function that a listener can be paused to to run during parsing?However, my parser in the code below has no such function:
How can I add a listener to the parser, similar to these lines from
my_test.rs
?