Skip to content

Commit

Permalink
More info about available ANTLR targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-lischke committed Sep 12, 2023
1 parent c940125 commit ef3409f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ In your `package.json` file, add a script to generate the parser and lexer files
```json
{
"scripts": {
"generate": "antlr4ng -o src/generated src/MyGrammar.g4"
"generate": "antlr4ng -Dlanguage=TypeScript -o src/generated src/MyGrammar.g4"
}
}
```
Expand All @@ -32,3 +32,5 @@ Then run the script:
```bash
npm run generate
```

The provided tool jar can generate parser and lexer files for all targets supported by ANTLR4. It's not limited to TypeScript. However, only this tool jar can generate the parser files compatible with the antlr4ng runtime.

0 comments on commit ef3409f

Please sign in to comment.