about summary refs log tree commit diff
path: root/src/parser
diff options
context:
space:
mode:
authorMalte Voos <git@mal.tc>2024-06-24 00:24:24 +0200
committerMalte Voos <git@mal.tc>2024-06-24 00:24:24 +0200
commitb34ebf3fe3ecaf292be873d231dd54c80f16ad07 (patch)
tree92e51250cf692fef97e7db310d244d1e3e7112a3 /src/parser
parent5d227bcd0055d02e1d49a3dcd27e80a756923d5b (diff)
downloadtoytt-b34ebf3fe3ecaf292be873d231dd54c80f16ad07.tar.gz
toytt-b34ebf3fe3ecaf292be873d231dd54c80f16ad07.zip
rename: Reporter -> Error
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))