Alec Thomas
1724aab879
Implement compile-time lexer mutators.
...
This should fix #15 .
2017-09-21 20:02:53 +10:00
Alec Thomas
60797cc03f
Add tracing + better error recovery.
2017-09-21 17:52:28 +10:00
Alec Thomas
e2d6abaa64
Document and add iterator panic recovery.
2017-09-20 23:06:23 +10:00
Alec Thomas
cc0e4a59ab
Switch to an Iterator interface.
...
This is to solve an issue where writers returned by the Formatter
were often stateful, but this fact was not obvious to the API consumer,
and failed in interesting ways.
2017-09-20 22:19:36 +10:00
Alec Thomas
36ead7258a
Use utf8.RuneCountInString() rather than len() :(
...
Fixes #10 . Thanks @curio77.
2017-09-20 20:36:25 +10:00
Alec Thomas
44b23f97b4
Split Regexp lexer into its own file.
2017-09-20 20:19:33 +10:00