Пример #1
0
 public void dumpLL_Tree()
 {
     if (productionTreeRoot != null && inputFile != null && grammarFile != null)
     {
         LLdot.dumpIt(productionTreeRoot);
     }
 }
Пример #2
0
    public List <string> generateAssembly()
    {
        //fullTestPrint();
        //printLRTable(LRTable);
        LLdot.dumpIt(productionTreeRoot);
        Assembler asmblr = new Assembler(productionTreeRoot, compilerType);

        return(asmblr.getASM());
    }
 public void dumpLL_Tree(TreeNode productionTreeRoot, string grammarFile, string inputFile, int compilerType)
 {
     if (productionTreeRoot != null && inputFile != null && grammarFile != null && compilerType == 0)
     {
         LLdot.dumpIt(productionTreeRoot);
     }
     else
     {
         throw new Exception("Did not specify compilerType to be for LL(0) or pass an input file to parse");
     }
 }