[cvs-nhc98] cvs commit: nhc98/src/compiler98 Extra.hs LexPre.hs
Lexical.hs ParseCore.hs
olaf at glass.cse.ogi.edu
olaf at glass.cse.ogi.edu
Thu Jul 29 12:49:05 EDT 2004
olaf 2004/07/29 09:49:05 PDT
Modified files:
src/compiler98 Extra.hs LexPre.hs Lexical.hs
ParseCore.hs
Log:
Extended Pos in Extra to have start and end line & column.
Also modified lexer to generate token sequence with each token having its full position, i.e. including correct end line & column.
However, parser not yet modified, so that positions in syntax tree only describe end of the first token of the syntactic construct, not the true one.
Changes not yet noticeable, because error messages still give only start line:column.
Hopefully no space leak introduced (positions are strict and their evaluation forced in lexer). (But size of a position obviously at least doubled.)
Revision Changes Path
1.12 +36 -15 nhc98/src/compiler98/Extra.hs
1.15 +60 -38 nhc98/src/compiler98/LexPre.hs
1.9 +20 -20 nhc98/src/compiler98/Lexical.hs
1.4 +4 -0 nhc98/src/compiler98/ParseCore.hs
More information about the Cvs-nhc98
mailing list