Skip to content
Snippets Groups Projects
Commit a524d8e5 authored by dgelessus's avatar dgelessus
Browse files

Add a few more progress prints during parser generation

parent 53c2a2f9
Branches
Tags
No related merge requests found
......@@ -96,6 +96,8 @@ public final class Grammar
LR1Collection collection = new LR1Collection(set
);
System.out.println(" - Computing parse table.");
LR0ItemSet[] sets = collection.collection.sets();
Symbol[] terminals = Symbol.terminals();
Symbol[] nonterminals = Symbol.nonterminals();
......
......@@ -22,6 +22,8 @@ final class LR0Collection
LR0Collection(LR0ItemSet set
)
{
System.out.println(" - Computing LR(0) items.");
add
(set
, -1, null);
......
......@@ -24,6 +24,8 @@ final class LR1Collection
collection = new LR0Collection(set
);
System.out.println(" - Computing LR(1) items.");
// Initialize lookaheads to nothing, propagation to nothing
LR0ItemSet[] sets = collection.sets();
@SuppressWarnings("unchecked")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment