You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the 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
The text was updated successfully, but these errors were encountered:
Evidence of the problem: this gives a warning with ocamlc, while camlp4o gives the warning, then a parse error (because the closing parenthesis has disappeared):
Original bug ID: 5820
Reporter: @bobzhang
Assigned to: @bobzhang
Status: closed (set by @xavierleroy on 2015-12-11T18:23:52Z)
Resolution: fixed
Priority: normal
Severity: minor
Target version: 4.01.1+dev
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Bug description
the 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
The text was updated successfully, but these errors were encountered: