[antlr] antlr installation tutorial, Windows10+Ubuntu

Time:2022-11-25

Install Antlr4 on Ubuntu

1. Download the jar package
existdownload link, select the file named antlr-4.*.1-complete.jar to download

Move to the specified directory, this tutorial is /root/

2. Modify .bashrc
In the ~ directory, view the hidden .bashrc file

ps -a

Open the .bashrc file

vim .bashrc

add after

export CLASSPATH=".:/root/antlr-4.10.1-complete.jar:$CLASSPATH"
alias antlr4='java -jar /root/antlr-4.10.1-complete.jar'
alias grun='java org.antlr.v4.gui.TestRig'

after

. .bashrc

Precautions
Exit after typing using ctrl+D

Recommended Today

What if you don’t want to mess with the python environment but want to automate iOS across platforms? Might as well try sib~

foreword Official website documentation (download, installation, documentation): https://sonic-cloud.gitee.io/…User community (provide bugs, requirements): https://sonic-cloud.wiki/Github: https://github.com/SonicCloud… sib introduction sib is an iOS debugging tool implemented with gidevice as the bottom layer. Because of the Go language feature, the compiled binary file can be run directly, so there is no need to configure the python environment or the […]