cvs commit: nhc98/src/compiler98 Extra.hs LexPre.hs Lexical.hs ParseCore.hs

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

olaf@glass.cse.ogi.edu writes:
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.
Excellent stuff. My overnight build points out that you have not yet made the corresponding changes in hat/src/hattrans. Regards, Malcolm
participants (2)
-
Malcolm Wallace
-
olaf@glass.cse.ogi.edu