Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > 35f158ed688457959180ccd9feeb7441 > files > 77

jflex-1.4.1-11mdv2008.1.x86_64.rpm

This directory contains a scanner for a toy programming language.

It is the example from the JLex website with some small modifications,
to make it a bit more readable.

It does nothing really useful, because there is no parser for the
toy programming language. It's just a demonstatration how a small simple
scanner looks like.

files:

YYtoken.java:
  the tokens returned by the scanner

Utility.java:
  small class collecting some utility functions

simple.flex:
  the example specification

test.txt:
  sample input

output.good:
  output matching the sample input from test.txt

Makefile: (for Unix only)
  make          to generate scanner and run test
  make clean    to remove generated files