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:
411 bytes
|
Line | |
---|
1 | This is a small example of a standalone text substitution scanner.
|
---|
2 |
|
---|
3 | It reads a name after the keyword name and replaces all occurences
|
---|
4 | of "hello" by "hello <name> !".
|
---|
5 |
|
---|
6 | sample.inp
|
---|
7 | contains a sample input for the scanner
|
---|
8 |
|
---|
9 | standalone.flex
|
---|
10 | the lexical specification for the scanner
|
---|
11 |
|
---|
12 | build.xml
|
---|
13 | ant build file
|
---|
14 |
|
---|
15 | to run the example use ant or type:
|
---|
16 |
|
---|
17 | jflex standalone.flex
|
---|
18 | javac Subst.java
|
---|
19 | java Subst sample.inp
|
---|
20 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.