From 7cf1451ab52586ed9c4eeae1b1ec3b4ebaa83393 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Mon, 18 Apr 2022 16:45:52 -0300 Subject: Add cmd options for viz of different compile stages --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d8e95f0..6c898a9 100644 --- a/Makefile +++ b/Makefile @@ -54,8 +54,14 @@ tests: $(BIN) run: $(BIN) $(BIN) example.bdl -viz: $(BIN) - $(BIN) example.bdl | dot -Nfontname="Iosevka Term" -Tpng > viz.png +viz_lex: $(BIN) + $(BIN) -pl example.bdl + +viz_par: $(BIN) + $(BIN) -pp example.bdl | dot -Nfontname="Iosevka Term" -Tpng > viz.png + +viz_sem: $(BIN) + $(BIN) -ps example.bdl | dot -Nfontname="Iosevka Term" -Tpng > viz.png # Remove build directory. clean: -- cgit v1.2.1