A parse tree is the structured result of parsing textual DSL content against a grammar. It may already serve as an abstract syntax tree (AST), or it may be transformed into one before language services use it. section 15.1
In a parsing-based DSL architecture, the parse tree connects:
- Textual DSL content to a grammar that specifies permitted character combinations. section 15.1
- A parser generator to a generated parser that produces the parse tree. section 15.1
- The resulting AST to language services such as content assist, constraint checking, syntax highlighting, and type information. section 15.1
Rental record DSL
A textual Rental record declares attributes such as a rental period, prices, and a discount. An EBNF grammar describes strings, types, values, attributes, and the complete record type that a parser can recognize.

