| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0005189 | OCaml | OCaml general | public | 2010-12-08 09:46 | 2012-09-19 14:28 |
|
| Reporter | kim | |
| Assigned To | | |
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | acknowledged | Resolution | open | |
| Platform | | OS | | OS Version | |
| Product Version | 3.12.1+dev | |
| Target Version | | Fixed in Version | | |
|
| Summary | 0005189: Exceptions raised by Genlex token streams should be more meaningful |
| Description | Whenever the lexed stream contains invalid character tokens,
invalid strings or invalid escape sequences, Stream.next and Stream.peek raise
'Stream.Error("")'
The message attached to the exception should be more meaningful to allow the programmer to distinguish between the cases (invalid character, invalid string,...)
|
| Additional Information | I use Genlex from within ocamlbuild to fetch files that are INCLUDEd (with the pa_macro extension) and add them dynamically as dependencies. The Genlex generated lexer fails on type expressions with variables, e.g. 'a t since it detects 'a as malformed char expression. |
| Tags | No tags attached. |
|
| Attached Files | |
|