| 1 |
========== |
| 2 |
JavaCC 5.0 |
| 3 |
========== |
| 4 |
|
| 5 |
|
| 6 |
Copyright (c) 2006, Sun Microsystems, Inc. |
| 7 |
All rights reserved. |
| 8 |
|
| 9 |
Redistribution and use in source and binary forms, with or without |
| 10 |
modification, are permitted provided that the following conditions are met: |
| 11 |
|
| 12 |
* Redistributions of source code must retain the above copyright notice, |
| 13 |
this list of conditions and the following disclaimer. |
| 14 |
* Redistributions in binary form must reproduce the above copyright |
| 15 |
notice, this list of conditions and the following disclaimer in the |
| 16 |
documentation and/or other materials provided with the distribution. |
| 17 |
* Neither the name of the Sun Microsystems, Inc. nor the names of its |
| 18 |
contributors may be used to endorse or promote products derived from |
| 19 |
this software without specific prior written permission. |
| 20 |
|
| 21 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 22 |
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 23 |
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 24 |
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
| 25 |
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 26 |
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 27 |
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 28 |
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 29 |
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 30 |
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
| 31 |
THE POSSIBILITY OF SUCH DAMAGE. |
| 32 |
|
| 33 |
|
| 34 |
SUMMARY |
| 35 |
|
| 36 |
JavaCC is an open source compiler compiler. It takes a grammar |
| 37 |
specification as input and produces a stand-alone parser written |
| 38 |
in Java. |
| 39 |
|
| 40 |
CONTENTS |
| 41 |
|
| 42 |
This distribution contains the javacc, jjtree and jjdoc sources, |
| 43 |
launcher scripts, example grammars and documentation. It also contains |
| 44 |
a bootstrap version of JavaCC needed to build JavaCC. |
| 45 |
|
| 46 |
BUILDING |
| 47 |
|
| 48 |
You need ant-1.5.3 or above to build JavaCC. You can get ant from: |
| 49 |
|
| 50 |
http://ant.apache.org |
| 51 |
|
| 52 |
Once you install ant, make sure ant is in your path. Then you can simply |
| 53 |
come to this directory (JavaCC source install directory) and type: |
| 54 |
|
| 55 |
$ ant |
| 56 |
|
| 57 |
it will build the javacc.jar file in the bin/lib directory. |
| 58 |
|
| 59 |
On unix-based systems, you need to make sure the files in the bin |
| 60 |
directory of this distribution are in your path. |
| 61 |
|