-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from antlr4ts to ANTLR's official TypeScript target (#184)
- Loading branch information
Showing
15 changed files
with
1,556 additions
and
1,668 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## cashc | ||
|
||
### Prerequisites | ||
|
||
In order to use the `antlr` command line tool when updating CashScript's grammar file, you need to have it installed. | ||
|
||
On macOS you can install it using Homebrew: | ||
|
||
```bash | ||
brew install antlr | ||
``` | ||
|
||
On Linux you can install it using apt: | ||
|
||
```bash | ||
sudo apt install antlr4 | ||
``` | ||
|
||
For other platforms, refer to the [Antlr website](https://www.antlr.org/). | ||
|
||
### Updating the grammar | ||
|
||
When updating the grammar file in `src/grammar/CashScript.g4`, we also need to make sure that the generated parser is updated. To do this, run the following command in the `packages/cashc` directory: | ||
|
||
```bash | ||
yarn antlr | ||
`````` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f74b8ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
cashscript – ./
www.cashscript.org
cashscript.org
cashscript-lahana.vercel.app
cashscript-eta.vercel.app
cashscript-git-master-lahana.vercel.app