diff options
| author | Cliff Click <cliffc@acm.org> | 2025-03-12 09:55:59 -0700 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2025-03-12 09:55:59 -0700 |
| commit | 05e73f1329b2d8088ce56b58f3b8685967577fce (patch) | |
| tree | 97ab09cd2836eeb83ac4b344fdc4b529f24d0d5c | |
| parent | 2370fb29d4538479af9eb94fc666a5ce09fcb492 (diff) | |
| download | Simple-05e73f1329b2d8088ce56b58f3b8685967577fce.tar.gz Simple-05e73f1329b2d8088ce56b58f3b8685967577fce.zip | |
Bring back `make view`
| -rw-r--r-- | chapter20/Makefile | 2 | ||||
| -rw-r--r-- | chapter20/src/main/java/com/seaofnodes/simple/print/JSViewer.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chapter20/Makefile b/chapter20/Makefile index f96cfea3..c5d8fa71 100644 --- a/chapter20/Makefile +++ b/chapter20/Makefile @@ -87,7 +87,7 @@ build/release/simple.jar: $(main_classes) $(test_classes) # Launch viewer view: $(main_classes) @echo "viewing " - @$(JVM) com.seaofnodes.simple.JSViewer + @$(JVM) com.seaofnodes.simple.print.JSViewer .PHONY: clean clean: diff --git a/chapter20/src/main/java/com/seaofnodes/simple/print/JSViewer.java b/chapter20/src/main/java/com/seaofnodes/simple/print/JSViewer.java index 76c64c71..a2b674c9 100644 --- a/chapter20/src/main/java/com/seaofnodes/simple/print/JSViewer.java +++ b/chapter20/src/main/java/com/seaofnodes/simple/print/JSViewer.java @@ -72,7 +72,7 @@ public class JSViewer implements AutoCloseable { public static void show() { if( SERVER!=null && SHOW ) _show(); } private static void _show() { // Skip util we at least get the Parse object made - if( CODE._phase==null || CODE._phase.ordinal() < CodeGen.Phase.Parse.ordinal() ) + if( CODE._phase == null ) return; boolean midParse = CODE._phase == CodeGen.Phase.Parse; Stack<ScopeNode> xScopes = midParse ? CODE.P._xScopes : null; |
