org.antlr.v4.test.runtime.templates.Sets.UnicodeEscapedSMPRangeSet.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.
TestType() ::= "Parser"
Options ::= [
"Debug": false
]
Grammar ::= [
"T": {}
]
Input() ::= "a😉🥂🜀d"
Rule() ::= "a"
Output() ::= <<
a😉🥂🜀d<\n>
>>
Errors() ::= ""
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 - 2024 Weber Informatics LLC | Privacy Policy