[type] Parser [grammar] grammar T; a : LETTERS {} ; // These are actually not escaped -- Java passes the // raw unescaped Unicode values to the grammar compiler. LETTERS : ('a'|'ä'|'亜'|'あ')* 'c'; [start] a [input] aäあ亜c [output] """aäあ亜c """