public static AST.Node UNIString(string input, FunctionInformation functionInfo) { Antlr.Runtime.Lexer lexer = new Grammar.Uni.AplusLexer(new ANTLRStringStream(input ?? "")); Grammar.AplusParser parser = new Grammar.AplusParser(new CommonTokenStream(lexer)); parser.FunctionInfo = functionInfo; bool parseOk = parser.Parse(); return parser.Tree; }
public static AST.Node UNIString(string input, FunctionInformation functionInfo) { Antlr.Runtime.Lexer lexer = new Grammar.Uni.AplusLexer(new ANTLRStringStream(input ?? "")); Grammar.AplusParser parser = new Grammar.AplusParser(new CommonTokenStream(lexer)); parser.FunctionInfo = functionInfo; bool parseOk = parser.Parse(); return(parser.Tree); }