public Lexer(OutputModelFactory factory, LexerFile file) : base(factory) { this.file = file; // who contains us? Grammar g = factory.GetGrammar(); channels = new LinkedHashMap<string, int>(g.channelNameToValueMap); modes = ((LexerGrammar)g).modes.Keys; }
public Lexer(OutputModelFactory factory, LexerFile file) : base(factory) { this.file = file; // who contains us? Grammar g = factory.GetGrammar(); channels = new LinkedHashMap <string, int>(g.channelNameToValueMap); modes = ((LexerGrammar)g).modes.Keys; }
public virtual Lexer Lexer(LexerFile file) { return null; }
public virtual LexerFile LexerFile(LexerFile f) { return f; }
public virtual Lexer Lexer(LexerFile file) { return new Lexer(@delegate, file); }