Generate graphs for PEGs

This commit is contained in:
Emery Hemingway 2023-12-17 22:25:51 +02:00
parent c1eb0a513a
commit 5267b7dc13
3 changed files with 8 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
/nim.cfg
*.dot
*.html
*.run
*.svg

View File

@ -1,4 +1,8 @@
include_rules
NIM_FLAGS += --path:$(TUP_CWD)/..
: foreach preserves_schema_nim.nim schemac.nim schemaparse.nim |> !nim_bin |> $(BIN_DIR)/%B | $(BIN_DIR)/<%B>
: foreach preserves_schema_nim.nim schemaparse.nim |> !nim_bin |> $(BIN_DIR)/%B | $(BIN_DIR)/<%B>
: foreach *hooks.nim |> !nim_check |>
DOT_FILES = ../../Document.dot ../../Schema.dot
: schemac.nim |> !nim_bin |> $(BIN_DIR)/%B | $(DOT_FILES) $(BIN_DIR)/<%B>
: foreach $(DOT_FILES) |> dot -Tsvg -LO %f > %o |> ../../%B-Grammer-Graph.svg

View File

@ -0,0 +1 @@
d:npegDotDir:"../.."