All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.antlr.v4.test.runtime.templates.SemPredEvalLexer.LexerInputPositionSensitivePredicates.stg Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
TestType() ::= "Lexer"

Options ::= [
	"ShowDFA": true
]

Grammar ::= [
	"L": {}
]

Input() ::= "a cde<\n>abcde<\n>"

Output() ::= <<
a
cde
ab
cde
[@0,0:0='a',\<1>,1:0]
[@1,2:4='cde',\<2>,1:2]
[@2,6:7='ab',\<1>,2:0]
[@3,8:10='cde',\<2>,2:2]
[@4,12:11='\',\<-1>,3:0]<\n>
>>

Errors() ::= ""

grammar(grammarName) ::= <<
lexer grammar ;
WORD1 : ID1+ {  } ;
WORD2 : ID2+ {  } ;
fragment ID1 : {  \< 2 }? [a-zA-Z];
fragment ID2 : {  >= 2 }? [a-zA-Z];
WS : (' '|'\n') -> skip;
>>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy