public static TreeNode compile(string gFile, string iFile) { c = new compiler(gFile, iFile, 1); return(c.getTree()); }
/// <summary> /// pass a grammarFile, inputFile, and specify a compilerType if you dont want it to be LL(0) by default. /// compilerTypes : {(0, LL(0)), (1, SLR(1)), (2, GLR)} /// </summary> /// <param name="gFile"></param> /// <param name="iFile"></param> /// <param name="compilerType"></param> /// <returns></returns> public static TreeNode parseTree(string gFile, string iFile, int compilerType = 0) { c = new compiler(gFile, iFile, compilerType); return(c.getTree()); }