We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a57563 commit 020b326Copy full SHA for 020b326
lib/parser.ml
@@ -66,7 +66,7 @@ let expect_peek (p : parser) (tt : Token.token_type) : (parser, parser) result =
66
Error (peek_error p tt)
67
68
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
+ let msg = Printf.sprintf "syntax error, unexpected %s found" (Token.show_token_type t) in
70
add_error p msg
71
72
let rec parse_program (p : parser) : (parser * AST.program, parser) result =
0 commit comments