aboutsummaryrefslogtreecommitdiffhomepage
path: root/parsing/lexer.mli
diff options
context:
space:
mode:
Diffstat (limited to 'parsing/lexer.mli')
-rw-r--r--parsing/lexer.mli7
1 files changed, 6 insertions, 1 deletions
diff --git a/parsing/lexer.mli b/parsing/lexer.mli
index 982e29436..721afa2d1 100644
--- a/parsing/lexer.mli
+++ b/parsing/lexer.mli
@@ -1,7 +1,12 @@
(* $Id$ *)
-exception BadToken of string
+type error =
+ | Illegal_character
+ | Unterminated_comment
+ | Unterminated_string
+
+exception Error of error
val add_keyword : string -> unit
val is_keyword : string -> bool