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: 5189 Reporter: kim Status: acknowledged (set by @damiendoligez on 2011-05-17T15:36:01Z) Resolution: open Priority: normal Severity: feature Version: 3.12.1+dev Category: standard library
Bug 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.
The text was updated successfully, but these errors were encountered:
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.
Original bug ID: 5189
Reporter: kim
Status: acknowledged (set by @damiendoligez on 2011-05-17T15:36:01Z)
Resolution: open
Priority: normal
Severity: feature
Version: 3.12.1+dev
Category: standard library
Bug 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.
The text was updated successfully, but these errors were encountered: