source: other-projects/rsyntax-textarea/devel-packages/jflex-1.4.3/examples/simple/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: 702 bytes
Line 
1This directory contains a scanner for a toy programming language.
2
3It is the example from the JLex website with some small modifications,
4to make it a bit more readable.
5
6It does nothing really useful, because there is no parser for the
7toy programming language. It's just a demonstatration how a small simple
8scanner looks like.
9
10files:
11
12YYtoken.java:
13 the tokens returned by the scanner
14
15Utility.java:
16 small class collecting some utility functions
17
18simple.flex:
19 the example specification
20
21test.txt:
22 sample input
23
24output.good:
25 output matching the sample input from test.txt
26
27Makefile: (for Unix only)
28 make to generate scanner and run test
29 make clean to remove generated files
Note: See TracBrowser for help on using the repository browser.