Add antlr4.sh
Signed-off-by: AKU <tom@tdpain.net>
This commit is contained in:
parent
ee01201712
commit
2bcc129bd2
2 changed files with 12 additions and 0 deletions
|
@ -35,6 +35,7 @@ Markdown docs and shell scripts for automating installation of things and docume
|
|||
## Programming
|
||||
|
||||
* [`act.sh`](act.sh) for the Act tool to run GitHub Actions workflows locally
|
||||
* [`antlr4.sh`](antlr4.sh) for the ANTLR v4 parser generator (requires Java 1.7 or newer)
|
||||
* [`clibraries.md`](clibraries.md) for errors like `fatal error: stdlib.h: No such file or directory`
|
||||
* [`docker.sh`](docker.sh) for installation of Docker on Linux Mint 20.01 or Ubuntu 20.04 LTS
|
||||
* [`docker-compose.sh`](docker-compose.sh) for installation of Docker Compose.
|
||||
|
|
11
antlr4.sh
Executable file
11
antlr4.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 2021-11-20 - Installs v4.9.3 of the ANTLR parser generator
|
||||
|
||||
cd /usr/local/lib
|
||||
sudo curl -O https://www.antlr.org/download/antlr-4.9.3-complete.jar
|
||||
|
||||
echo "# ANTLR4, see /usr/local/lib" >> ~/.bashrc
|
||||
echo "export CLASSPATH=\".:/usr/local/lib/antlr-4.9.3-complete.jar:\$CLASSPATH\"" >> ~/.bashrc
|
||||
echo "alias antlr4='java -Xmx500M -cp \"/usr/local/lib/antlr-4.9.3-complete.jar:\$CLASSPATH\" org.antlr.v4.Tool'" >> ~/.bashrc
|
||||
echo "alias grun='java -Xmx500M -cp \"/usr/local/lib/antlr-4.9.3-complete.jar:\$CLASSPATH\" org.antlr.v4.gui.TestRig'" >> ~/.bashrc
|
Loading…
Add table
Add a link
Reference in a new issue