source: other-projects/rsyntax-textarea/devel-packages/jflex-1.4.3/examples/byaccj/README@ 25584

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 
1This directory contains an interoperability example for BYacc/J and JFlex
2(a small calculator)
3
4You need the parser generator byacc/j from
5http://troi.lincom-asg.com/~rjamison/byacc/
6for this example to work (version byacc/j 1.1 has been tested).
7
8Use the Makefile to generate the lexer and parser.
9The example can then be started with
10
11java Parser
12
13
14files:
15
16calc.flex
17 JFlex specification for the lexical part of the arithmetic expressions
18
19calc.y
20 BYacc/J specification and main program for the calculator
21
22
Note: See TracBrowser for help on using the repository browser.