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

org.antlr.v4.test.runtime.templates.LexerExec.ActionPlacement.stg Maven / Gradle / Ivy

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

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

Input() ::= <%
ab
%>

Output() ::= <<
stuff0: 
stuff1: a
stuff2: ab
ab
[@0,0:1='ab',\<1>,1:0]
[@1,2:1='\',\<-1>,1:2]<\n>
>>

Errors() ::= ""

grammar(grammarName) ::= <<
lexer grammar ;
I : ({} 'a'
| {}
		'a' {}
		'b' {})
		{} ;
WS : (' '|'\n') -> skip ;
J : .;
>>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy