Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

Commit

Permalink
Add railroad diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
Gashmob committed Jul 19, 2023
1 parent 07cab42 commit 16d1c2b
Show file tree
Hide file tree
Showing 5 changed files with 6,436 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
cmake-build-debug
cmake-build-release
build
coverage.info
coverage.info
output
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ This script is used to update the version badge and the file `src/lib/utils/VERS

- [HTTPie](https://github.com/httpie/httpie)

### Railroad diagram

[The diagram](src/lib/grammar/diagram.html)

- [bkiers/rrd-antlr4](https://github.com/bkiers/rrd-antlr4)

## Building and Testing

If you want to build and test the compiler, please follow the steps below.
Expand Down
7 changes: 7 additions & 0 deletions bin/railroad_diagram.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

java -jar bin/rrd-antlr4-0.1.2.jar src/lib/grammar/FilParser.g4 --simple

mv output/FilParser/index.html src/lib/grammar/diagram.html

rm -rf output
Binary file added bin/rrd-antlr4-0.1.2.jar
Binary file not shown.
Loading

0 comments on commit 16d1c2b

Please sign in to comment.