Replies: 2 comments 2 replies
-
No, you would have to implement it, e.g:
You could theoretically re-build the text from the CST
However, this second approach would be less accurate as it does not account for skipped tokens (e.g whitespace). |
Beta Was this translation helpful? Give feedback.
0 replies
-
hmmm -- any thoughts about adding this to the API? or possibly accepting it as a PR ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For debugging I'd like to access the text of a matched element in my visitor -- something roughly equivalent to ANTLRs getText()... Is this possible ?
Beta Was this translation helpful? Give feedback.
All reactions