Class GrammarSerializerFoo


  • public class GrammarSerializerFoo
    extends Object
    Serialize a grammar into a highly compressed form with only the info needed to recognize sentences. FORMAT: file ::= $ANTLR<version:byte><grammartype:byte><name:string>;<numRules:short><rules> rule ::= R<rulename:string>;B<nalts:short><alts>. alt ::= A<elems>; elem ::= t<tokentype:short> | r<ruleIndex:short> | -<char:uchar><char:uchar> | ~<tokentype> | w