ANTLR: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 31: Line 31:


{{Internal|Gradle_ANTLR_Plugin|Gradle ANTLR 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.

Revision as of 16:10, 18 July 2018

External

Internal

Overview

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

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.