%% %include Jflex.include %{ int i=0; /* just to write lines not too long*/ void echo(String s) { System.out.print(s); if ((++i % 10)==0 ) System.out.println(); } %} %eof{ /*just to see the end of file */ System.out.println("Fin"); %eof} %% ">" { echo(" "); } "<" { echo(" \t"); } "+" { echo(" \t "); } "-" { echo("\t "); } "[" { echo("\t\t "); } "]" { echo("\t \t"); } "." { echo(" \t\t"); } "," { echo("\t\t\t"); } [^] {}