Answer the question
In order to leave comments, you need to log in
How to create an AST parser that allows for syntax errors?
For starters, how are AST (Abstract Syntax Tree) trees actually built? What to read?
How to create a parser for a language like SQL that generates an AST tree and forgives syntax errors?
Example: "3+4*5":
+
/ \
3 *
/ \
4 5
+
/ \
3 *
/ \
4 +
/ \
? ?
---SELECT_________________
/ \ \
. FROM JOIN
/ \ | / \
a city_name people address ON
|
=______________
/ \
.____ .
/ \ / \
p address_id a id
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question