/// <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));
        }
Exemple #2
0
 /// <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);
 }