
org.antlr.v4.test.runtime.templates.Sets.UnicodeEscapedSMPRangeSetMismatch.stg Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime-testsuite Show documentation
Show all versions of runtime-testsuite Show documentation
A collection of tests for ANTLR 4 Runtime libraries.
The newest version!
TestType() ::= "Parser"
Options ::= [
"Debug": false
]
Grammar ::= [
"T": {}
]
Input() ::= "a🗿🥄d"
Rule() ::= "a"
Output() ::= <<
ad<\n>
>>
Errors() ::= <<
line 1:1 token recognition error at: '🗿'
line 1:2 token recognition error at: '🥄'<\n>
>>
grammar(grammarName) ::= <<
grammar ;
a : LETTERS* 'd' {} ;
// Note the double-backslash to avoid Java passing
// unescaped values as part of the grammar.
LETTERS : ('a'|'\\u{1F600}'..'\\u{1F943}');
>>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy