Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/Compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ let get_lexing_position lexbuf =


let get_parse_error env =
match I.stack env with
| lazy Nil -> "Invalid syntax"
| lazy (Cons (I.Element (state, _, _, _), _)) ->
match I.top env with
| None -> "Invalid syntax"
| Some (I.Element (state, _, _, _)) ->
try (Parser_messages.message (I.number state)) with
| _ -> "invalid syntax (no specific message for this eror)"

Expand Down
1 change: 0 additions & 1 deletion lib/Parser.mly
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
%{
open ExternalGrammar
open Bignum
%}

/* Tokens */
Expand Down