source: other-projects/rsyntax-textarea/devel-packages/jflex-1.4.3/examples/cup/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: 729 bytes
Line 
1A small JFlex+Cup example
2
3It comes from a short article series in the Linux Gazette by Richard
4A. Sevenich and Christopher Lopes, titled "Compiler Construction
5Tools". The article series starts at
6
7http://www.linuxgazette.com/issue39/sevenich.html
8
9Small changes and updates to newest JFlex+Cup versions by Gerwin Klein
10
11
12To compile:
13>jflex lcalc.flex
14>java java_cup.Main < ycalc.cup
15>javac Main.java
16
17To run:
18>java Main test.txt
19
20
21Files:
22
23Main.java demo of a main program
24Makefile makefile to compile and test the example
25README this file
26lcalc.flex the lexer spec
27output.good how the output should look like for the test
28ycalc.cup the parser spec
29test.txt sample input for testing
30
Note: See TracBrowser for help on using the repository browser.