Skip to content

Commit

Permalink
Merge pull request #297 from parrt/master
Browse files Browse the repository at this point in the history
update README / CHANGES 4.0 to 4.1
  • Loading branch information
parrt committed Jun 29, 2013
2 parents b713316 + 6bd55c0 commit cb532e1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ANTLR v4 Honey Badger

June 30, 2013 -- 4.1 release

June 24, 2013

* Resize ANTLRInputStream.data after reading a file with fewer characters than
Expand Down
30 changes: 17 additions & 13 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ANTLR v4

Terence Parr, parrt at cs usfca edu
Terence Parr, parrt@cs.usfca.edu
ANTLR project lead and supreme dictator for life
University of San Francisco

INTRODUCTION

Hi and welcome to the Honey Badger 4.0 release of ANTLR!
Hi and welcome to the Honey Badger 4.1 release of ANTLR!

INSTALLATION

Expand All @@ -17,40 +17,40 @@ UNIX
1. Download

$ cd /usr/local/lib
$ curl -O http://www.antlr4.org/download/antlr-4.0-complete.jar
$ curl -O http://www.antlr4.org/download/antlr-4.1-complete.jar

Or just download in browser using URL:

http://www.antlr4.org/download/antlr-4.0-complete.jar
http://www.antlr4.org/download/antlr-4.1-complete.jar

and put it somewhere rational like /usr/local/lib.

2. Add antlr-4.0-complete.jar to your CLASSPATH:
2. Add antlr-4.1-complete.jar to your CLASSPATH:

$ export CLASSPATH=".:/usr/local/lib/antlr-4.0-complete.jar:$CLASSPATH"
$ export CLASSPATH=".:/usr/local/lib/antlr-4.1-complete.jar:$CLASSPATH"

Is also a good idea to put this in your .bash_profile or whatever your
startup script is.

3. Create aliases for the ANTLR Tool, and TestRig.

$ alias antlr4='java -jar /usr/local/lib/antlr-4.0-complete.jar'
$ alias antlr4='java -jar /usr/local/lib/antlr-4.1-complete.jar'
$ alias grun='java org.antlr.v4.runtime.misc.TestRig'

WINDOWS (Thanks to Graham Wideman)

0. Install Java (version 1.6 or higher)

1. Download http://antlr.org/download/antlr-4.0-complete.jar
1. Download http://antlr.org/download/antlr-4.1-complete.jar
Save to your directory for 3rd party Java libraries, say C:\Javalib

2. Add antlr-4.0-complete.jar to CLASSPATH, either:
2. Add antlr-4.1-complete.jar to CLASSPATH, either:

* Permanently: Using System Properties dialog > Environment variables >
Create or append to CLASSPATH variable

* Temporarily, at command line:
SET CLASSPATH=C:\Javalib\antlr-4.0-complete.jar;%CLASSPATH%
SET CLASSPATH=C:\Javalib\antlr-4.1-complete.jar;%CLASSPATH%

3. Create short convenient commands for the ANTLR Tool, and TestRig,
using batch files or doskey commands:
Expand All @@ -70,15 +70,15 @@ TESTING INSTALLATION
Either launch org.antlr.v4.Tool directly:

$ java org.antlr.v4.Tool
ANTLR Parser Generator Version 4.0
ANTLR Parser Generator Version 4.1
-o ___ specify output directory where all output is generated
-lib ___ specify location of .tokens files
...

or use -jar option on java:

$ java -jar /usr/local/lib/antlr-4.0-complete.jar
ANTLR Parser Generator Version 4.0
$ java -jar /usr/local/lib/antlr-4.1-complete.jar
ANTLR Parser Generator Version 4.1
-o ___ specify output directory where all output is generated
-lib ___ specify location of .tokens files
...
Expand Down Expand Up @@ -115,3 +115,7 @@ the parse tree in LISP notation.
BOOK SOURCE CODE

http://pragprog.com/titles/tpantlr2/source_code

GRAMMARS

https://github.com/antlr/grammars-v4

0 comments on commit cb532e1

Please sign in to comment.