diff options
author | Xavier Clerc <xavier.clerc@inria.fr> | 2013-01-16 12:29:25 +0000 |
---|---|---|
committer | Xavier Clerc <xavier.clerc@inria.fr> | 2013-01-16 12:29:25 +0000 |
commit | 21f51b8b030e0315f6fbb63a789edb9bda109de8 (patch) | |
tree | 9c873cfceb222834f817b8e6afeda0db34cc4a6a /stdlib | |
parent | 75df311d0263c7a62d6d132557e2bbf2a42076bd (diff) |
PR#5880: 'Genlex.make_lexer' documention mentions the wrong exception
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13245 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/genlex.mli | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/stdlib/genlex.mli b/stdlib/genlex.mli index 7a34579aa..8ab9902b1 100644 --- a/stdlib/genlex.mli +++ b/stdlib/genlex.mli @@ -64,6 +64,7 @@ val make_lexer : string list -> char Stream.t -> token Stream.t belongs to this list, and as [Ident s] otherwise. A special character [s] is returned as [Kwd s] if [s] belongs to this list, and cause a lexical error (exception - [Parse_error]) otherwise. Blanks and newlines are skipped. - Comments delimited by [(*] and [*)] are skipped as well, - and can be nested. *) + [Stream.Error] with the offending lexeme as its parameter) otherwise. + Blanks and newlines are skipped. Comments delimited by [(*] and [*)] + are skipped as well, and can be nested. A [Stream.Failure] exception + is raised if end of stream is unexpectedly reached.*) |