What's the difference between a parse tree and an abstract syntax tree (AST)? Why doesn't ANTLR gene

What's the difference between a parse tree and an abstract syntax tree (AST)? Why doesn't ANTLR gene

瀏覽:1479
日期:2024-07-09
Terence Parr A parse tree is a record of the rules (and tokens) used to match some input text whereas a syntax tree records the structure of the input and is insensitive to the grammar that produced it. Note that there are an infinite number of grammars f...看更多