tock-mirror/testcases/stringlit.occ
Adam Sampson 1bac142a53 Rework the parser to use the new lexer.
The occam parser is now a GenParser Token OccState, rather than a GenParser
Char OccState, and a lot of now-redundant code has been removed. The parser is
also somewhat faster, which wasn't intended but is nice anyway.

I've also modified the Rain parser to not rely on the old preprocessing code;
it wasn't appropriate for Rain's syntax anyway, so I assume Neil will be
replacing it eventually.
2007-08-21 20:44:15 +00:00

16 lines
395 B
Plaintext

PROC P ()
VAL []BYTE s IS "***c*n*t*s*X*#00*#A0\now":
VAL []BYTE ss IS "'":
VAL []BYTE ssx IS "*'":
VAL []BYTE sss IS "foo**":
VAL BYTE c IS 'x':
VAL BYTE cc IS '"':
VAL BYTE ccx IS '*"':
VAL BYTE ccc IS '*'':
VAL []BYTE mls IS "first*
*second*
*third":
VAL [5][5]BYTE square IS ["sator", "arepo", "tenat", "opera", "rotas"]:
SKIP
: