Esempio n. 1
0
        /// <summary>
        /// Builds an APL parser for the given input
        /// </summary>
        /// <param name="input">Input string to parse.</param>
        /// <returns>An <see cref="AplusParser"/>.</returns>
        public static AplusParser BuildAPLParser(string input)
        {
            AplusLexer lexer = new AplusLexer(new ANTLRStringStream(input));

            return(new AplusParser(new CommonTokenStream(lexer)));
        }
Esempio n. 2
0
 /// <summary>
 /// Builds an APL parser for the given input
 /// </summary>
 /// <param name="input">Input string to parse.</param>
 /// <returns>An <see cref="AplusParser"/>.</returns>
 public static AplusParser BuildAPLParser(string input)
 {
     AplusLexer lexer = new AplusLexer(new ANTLRStringStream(input));
     return new AplusParser(new CommonTokenStream(lexer));
 }