/// <summary> /// Instantiate ANTLR-based TDL parser and parse TDL. /// </summary> /// <param name="Text">TDL string.</param> /// <returns>TimeDefParser object.</returns> private static TimeDefParser GetParser(string Text) { ICharStream input = new ANTLRStringStream(Text); TimeDefLexer lex = new TimeDefLexer(input); CommonTokenStream tokens = new CommonTokenStream(lex); return(new TimeDefParser(tokens)); }
/// <summary> /// Instantiate ANTLR-based TDL parser and parse TDL. /// </summary> /// <param name="Text">TDL string.</param> /// <returns>TimeDefParser object.</returns> private static TimeDefParser GetParser(string Text) { ICharStream input = new ANTLRStringStream(Text); TimeDefLexer lex = new TimeDefLexer(input); CommonTokenStream tokens = new CommonTokenStream(lex); return new TimeDefParser(tokens); }