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 | |
---|
1 | This directory contains a scanner for a toy programming language.
|
---|
2 |
|
---|
3 | It is the example from the JLex website with some small modifications,
|
---|
4 | to make it a bit more readable.
|
---|
5 |
|
---|
6 | It does nothing really useful, because there is no parser for the
|
---|
7 | toy programming language. It's just a demonstatration how a small simple
|
---|
8 | scanner looks like.
|
---|
9 |
|
---|
10 | files:
|
---|
11 |
|
---|
12 | YYtoken.java:
|
---|
13 | the tokens returned by the scanner
|
---|
14 |
|
---|
15 | Utility.java:
|
---|
16 | small class collecting some utility functions
|
---|
17 |
|
---|
18 | simple.flex:
|
---|
19 | the example specification
|
---|
20 |
|
---|
21 | test.txt:
|
---|
22 | sample input
|
---|
23 |
|
---|
24 | output.good:
|
---|
25 | output matching the sample input from test.txt
|
---|
26 |
|
---|
27 | Makefile: (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.