Skip to content

Commit 020b326

Browse files
committed
Change parse error msg
1 parent 7a57563 commit 020b326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parser.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ let expect_peek (p : parser) (tt : Token.token_type) : (parser, parser) result =
6666
Error (peek_error p tt)
6767

6868
let no_prefix_parse_fn_error (p : parser) (t : Token.token_type) : parser =
69-
let msg = Printf.sprintf "no prefix parse function for %s found" (Token.show_token_type t) in
69+
let msg = Printf.sprintf "syntax error, unexpected %s found" (Token.show_token_type t) in
7070
add_error p msg
7171

7272
let rec parse_program (p : parser) : (parser * AST.program, parser) result =

0 commit comments

Comments
 (0)