New tool to create parsing result set from lisp expression
kaby76 opened this issue · comments
Ken Domino commented
https://stackoverflow.com/questions/72838362/graphically-browse-s-expression-output-from-antlr4
Read stdin, create PRS of low fidelity, but at least allows one to view the tree.
Ken Domino commented
This cannot be done easily. This is because the lexer tokens are "naked". They do not have any way to distinguish between lexer value, rule name, and meta characters for lisp expressions. For example, if you have a grammar that recognizes '(' as a token, this appears almost indistinguishable with '(' of the lisp list to denote a node.
Also, the term "s-expression" is really not the same as a lisp list expression. S-expressions is a notation to describe a binary tree.