ANTLR: Difference between revisions
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
=Overview= | =Overview= | ||
=Installation= | |||
brew install antlr | |||
=Organizatorium= | =Organizatorium= | ||
Line 27: | Line 30: | ||
==Syntactical Analysis== | ==Syntactical Analysis== | ||
==Gradle Plugin== | |||
{{Internal|Gradle_ANTLR_Plugin|Gradle ANTLR Plugin}} | |||
==Operations== | |||
To run the TestRig: | |||
grun <''GrammarName''> <''start-production''> [-gui] [file.txt] | |||
The grammar name must be the '''fully qualified''' path to the class. |
Latest revision as of 00:41, 21 January 2020
External
Internal
Overview
Installation
brew install antlr
Organizatorium
Grammar Notation
Lexical Analysis
Whitespace Handling
Standard whitespace handling:
WS: [ \t\r\n]+ -> skip;
In-Line Specified Tokens vs. Declared Tokens
Syntactical Analysis
Gradle Plugin
Operations
To run the TestRig:
grun <GrammarName> <start-production> [-gui] [file.txt]
The grammar name must be the fully qualified path to the class.