Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > ** ML-Yacc abstract syntax tree source position
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 6th October 02:01
matthew fluet
External User
 
Posts: 1
Default ** 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.
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666