| Anonymous | Login | Signup for a new account | 2013-05-24 20:42 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||
| 0004706 | OCaml | Camlp4 | public | 2009-01-31 02:07 | 2012-09-25 20:06 | |||
| Reporter | Martin Jambon | |||||||
| Assigned To | ertai | |||||||
| Priority | normal | Severity | trivial | Reproducibility | always | |||
| Status | closed | Resolution | fixed | |||||
| Platform | OS | OS Version | ||||||
| Product Version | 3.11.0 | |||||||
| Target Version | Fixed in Version | 3.12.0 | ||||||
| Summary | 0004706: No trailing semicolon allowed in list and array patterns | |||||||
| Description | Trailing semicolons e.g. [ 1; ] in patterns for arrays and lists are not allowed by camlp4o. The reference manual does not mention that it should be legal, but the compilers tolerate them everywhere (patterns and expressions), so it seems natural to allow them in the camlp4o parser as well. (* This is foo.ml camlp4o -parser pa_foo.cmo -printer o foo.ml ocamlc -c -pp 'camlp4o -parser pa_foo.cmo' foo.ml *) match [| |] with [| 1; |] -> () | _ -> () (**************************************) $ camlp4o -printer o foo.ml File "foo.ml", line 9, characters 8-9: Parse error: [sem_patt] expected after ";" (in [sem_patt]) | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2009-01-31 02:07 | Martin Jambon | New Issue | |
| 2009-03-28 17:18 | xleroy | Status | new => assigned |
| 2009-03-28 17:18 | xleroy | Assigned To | => ertai |
| 2011-02-15 12:11 | xclerc | Status | assigned => resolved |
| 2011-02-15 12:11 | xclerc | Fixed in Version | => 3.12.0 |
| 2011-02-15 12:11 | xclerc | Resolution | open => fixed |
| 2012-09-25 20:06 | xleroy | Status | resolved => closed |
| Copyright © 2000 - 2011 MantisBT Group |