Xtext relies on the Antlr parser generator to parse input files. In addition, the structure provides many additional values, such as strongly typed ASTs, abstractions for binding and static analysis, and IDE integration for Eclipse.
To this end, Xtext generates two Antlr grammars. One for parsing, in which the actual AST is produced, and a second grammar, which is used to consume events to calculate content suggestions for the Eclipse editor.
Sebastian zarnekow
source share