From 1e4561880b2e073d80353f697520eb36730e1ee5 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 13 Aug 2024 16:44:34 +0200 Subject: [PATCH] feat: add instructions for TS parser generation --- .gitignore | 3 ++- README.md | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ccca18c..adbbf23 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.antlr \ No newline at end of file +.antlr +takentaal \ No newline at end of file diff --git a/README.md b/README.md index 130cbf7..fd3968e 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,14 @@ ```bash nix develop -antlr4-parse takentaal.g4 takentaal example -tree + +# Inspect lexer antlr4-parse takentaal.g4 takentaal example -tokens + +# Inspect parser +antlr4-parse takentaal.g4 takentaal example -tree +antlr4-parse takentaal.g4 takentaal example -gui + +# Generate TypeScript parser +antlr4 -Dlanguage=TypeScript -o takentaal takentaal.g4 `` \ No newline at end of file