diff options
| author | Gabriel Kerneis | 2013-08-01 12:22:42 +0100 |
|---|---|---|
| committer | Gabriel Kerneis | 2013-08-01 12:22:42 +0100 |
| commit | 8bb73c52a686a912887d349465d85241b6e8a312 (patch) | |
| tree | 38fc2cb223202ee100ab6b71eea74188e3457ae3 /src/_build/reporting_basic.ml | |
| parent | 9fbac634d5986a3c067ba0dac29131a769461e2d (diff) | |
Lex and discard comments
Diffstat (limited to 'src/_build/reporting_basic.ml')
| -rw-r--r-- | src/_build/reporting_basic.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/_build/reporting_basic.ml b/src/_build/reporting_basic.ml index 7f207651..a0d53ab0 100644 --- a/src/_build/reporting_basic.ml +++ b/src/_build/reporting_basic.ml @@ -144,7 +144,7 @@ type error = | Err_todo of Parse_ast.l * string | Err_syntax of Lexing.position * string | Err_syntax_locn of Parse_ast.l * string - | Err_lex of Lexing.position * char + | Err_lex of Lexing.position * string | Err_type of Parse_ast.l * string let dest_err = function @@ -153,7 +153,7 @@ let dest_err = function | Err_todo (l, m) -> ("Todo" ^ m, false, Loc l, "") | Err_syntax (p, m) -> ("Syntax error", false, Pos p, m) | Err_syntax_locn (l, m) -> ("Syntax error", false, Loc l, m) - | Err_lex (p, c) -> ("Lexical error", false, Pos p, "unknown character "^(String.make 1 c)) + | Err_lex (p, s) -> ("Lexical error", false, Pos p, s) | Err_type (l, m) -> ("Type error", false, Loc l, m) exception Fatal_error of error |
