Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005820OCamlCamlp4public2012-11-11 17:292012-11-11 17:29
Reporterhongboz 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0005820: move_start_p in Lexing is wrong
Descriptionthe move_start_p want to unrolling some characters, but it does not have any side effect actually.
given a string input
"*)" it can only generate tokens "SYMBOL *".

the ocamllex manual does not say it can do unrolling, but I have a hack that will do this
        | "*)"
           { warn Comment_not_end (FanLoc.of_lexbuf lexbuf) ;
             (* move_start_p (-1) c; *)
             lexbuf.lex_curr_pos <- lexbuf.lex_curr_pos - 1;
             SYMBOL "*" }

Will anyone verify this problem? the move_start_p should be removed and applied such hacks to unroll
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2012-11-11 17:29 hongboz New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker