Last change
on this file since 25584 was 25584, checked in by davidb, 12 years ago |
Initial cut an a text edit area for GLI that supports color syntax highlighting
|
File size:
512 bytes
|
Line | |
---|
1 | This directory contains an interoperability example for BYacc/J and JFlex
|
---|
2 | (a small calculator)
|
---|
3 |
|
---|
4 | You need the parser generator byacc/j from
|
---|
5 | http://troi.lincom-asg.com/~rjamison/byacc/
|
---|
6 | for this example to work (version byacc/j 1.1 has been tested).
|
---|
7 |
|
---|
8 | Use the Makefile to generate the lexer and parser.
|
---|
9 | The example can then be started with
|
---|
10 |
|
---|
11 | java Parser
|
---|
12 |
|
---|
13 |
|
---|
14 | files:
|
---|
15 |
|
---|
16 | calc.flex
|
---|
17 | JFlex specification for the lexical part of the arithmetic expressions
|
---|
18 |
|
---|
19 | calc.y
|
---|
20 | BYacc/J specification and main program for the calculator
|
---|
21 |
|
---|
22 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.