function AGTypeParse()

in backend/src/tools/AGEParser.js [26:36]


function AGTypeParse(input) {
    const chars = new antlr4.InputStream(input);
    const lexer = new AgtypeLexer(chars);
    const tokens = new antlr4.CommonTokenStream(lexer);
    const parser = new AgtypeParser(tokens);
    parser.buildParseTrees = true;
    const tree = parser.agType();
    const printer = new CustomAgTypeListener();
    antlr4.tree.ParseTreeWalker.DEFAULT.walk(printer, tree);
    return printer.getResult();
}