상속: OutputFile
예제 #1
0
파일: Lexer.cs 프로젝트: sharwell/antlr4cs
        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;
        }
예제 #2
0
        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;
        }
예제 #3
0
 public virtual Lexer Lexer(LexerFile file)
 {
     return null;
 }
예제 #4
0
 public virtual LexerFile LexerFile(LexerFile f)
 {
     return f;
 }
예제 #5
0
 public virtual Lexer Lexer(LexerFile file)
 {
     return new Lexer(@delegate, file);
 }