aboutsummaryrefslogtreecommitdiff
path: root/src/parser
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser')
-rw-r--r--src/parser/Parser.ml4
-rw-r--r--src/parser/dune2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/parser/Parser.ml b/src/parser/Parser.ml
index 4593d82..88448c9 100644
--- a/src/parser/Parser.ml
+++ b/src/parser/Parser.ml
@@ -8,6 +8,6 @@ let parse_expr (s : string) : Ast.expr =
Eff.run ~env:source @@ fun () ->
try Grammar.start_expr Lexer.token lexbuf with
| Lexer.IllegalCharacter illegal_char ->
- Reporter.illegal_character ~loc:(Asai.Range.of_lexbuf ~source lexbuf) illegal_char
+ Error.illegal_character ~loc:(Asai.Range.of_lexbuf ~source lexbuf) illegal_char
| Grammar.Error ->
- Reporter.syntax_error ~loc:(Asai.Range.of_lexbuf ~source lexbuf)
+ Error.syntax_error ~loc:(Asai.Range.of_lexbuf ~source lexbuf)
diff --git a/src/parser/dune b/src/parser/dune
index fd4aae7..7a1b290 100644
--- a/src/parser/dune
+++ b/src/parser/dune
@@ -10,4 +10,4 @@
(libraries
asai
toytt.ast
- toytt.reporter))
+ toytt.error))