Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README: newer antlr #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ All *.g files should be processed with ANTLR:
$ cd keyboardlayouteditor/
$ sudo apt-get install python-pip
$ sudo pip install http://www.antlr3.org/download/Python/antlr_python_runtime-3.1.2.tar.gz
$ wget http://www.antlr3.org/download/antlr-3.1.2.jar
$ java -classpath antlr-3.1.2.jar org.antlr.Tool *.g
$ wget http://www.antlr3.org/download/antlr-3.5.2-complete.jar
$ java -classpath antlr-3.5.2-complete.jar org.antlr.Tool *.g
```

The first command installs the Python 2 package manager.
The second command installs the Python 2 Antlr 3.1.2 runtime.
The third command downloads the antlr 3.1.2 JAR file (code of Antlr) in the current directory.
The third command downloads the antlr 3.5.2 JAR file (code of Antlr) in the current directory.
The antlr3 package in Ubuntu is for Antlr 3.2, but we cannot use it because it is a bit complicated to get a 3.2 python runtime.
The fourth command runs the Antlr code on the .g grammar files that exist in the KeyboardLayoutEditor directory.
These are four files, and produces the processed grammar.
Expand Down