** ML-Yacc abstract syntax tree source position
The ml-lex documentation states:
\paragraph{Bug.} The position of the first character in the file
is reported as 2 (unless the {\tt \%posarg} feature is used).
To preserve compatibility, this bug has not been fixed.
It is a trivial bug to fix, and MLton will be shipping a fixed version
of mllex in the next release. In the meantime, if you lexer isn't
changing that much, you can fix the bug yourself by changing the line
val yygone0=1
to
val yygone0=~1
in the generated lexer.
|