How can I reconstruct the original text from a Chevrotain CstElement
or CstNode
object? (These objects represent a concrete syntax tree.)
The documentation suggests that this should be possible, as it says the following about differences between ASTs and CSTs:
the exact original text can not always be re-constructed from the AST.