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
Original bug ID: 1314 Reporter: administrator Status: closed Resolution: not a bug Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
When entering parsing the second time in the same program run and calling
the symbol_start function at the first rule it returns the last symbol_end
position from the previous run through the parser (altough I expected it to
return 0).
Is it supposed to work only once, or is there something I'm missing?
Maybe it should clear the whole Parsing.env when calling clear_parser?
Kimmo
The text was updated successfully, but these errors were encountered:
When entering parsing the second time in the same program run and calling
the symbol_start function at the first rule it returns the last symbol_end
position from the previous run through the parser (altough I expected it to
return 0).
Is it supposed to work only once, or is there something I'm missing?
Location information (Parsing.symbol_start) is derived from the
location information contained in lexing buffers (Lexing.lexbuf).
If you reuse the same lexing buffer across several calls to a parser,
locations keep increasing. If this behavior is inadequate, use a
fresh lexbuf to start again from 0.
Maybe it should clear the whole Parsing.env when calling clear_parser?
Original bug ID: 1314
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
When entering parsing the second time in the same program run and calling
the symbol_start function at the first rule it returns the last symbol_end
position from the previous run through the parser (altough I expected it to
return 0).
Is it supposed to work only once, or is there something I'm missing?
Maybe it should clear the whole Parsing.env when calling clear_parser?
The text was updated successfully, but these errors were encountered: