MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

Commit 538a51d6 authored by POTTIER Francois's avatar POTTIER Francois
Browse files

Added [T_error] to the type ['a terminal].

I had forgotten it until now.
parent c3384297
......@@ -70,8 +70,19 @@ let tokentypedef grammar =
when [Settings.inspection] is false, we remain compatible with old versions
of OCaml, without GADTs. *)
(* Although the [token] type does not include the [error] token (because this
token is never produced by the lexer), the token GADT must include the
[error] token (because this GADT must describe all of the tokens that are
allowed to appear in a production). *)
let tokengadtdef grammar =
assert Settings.inspection;
let errordata = {
dataname = ttokengadtdata "error";
datavalparams = [];
datatypeparams = Some [ tunit ]
(* the [error] token has a semantic value of type [unit] *)
} in
let datadefs =
StringMap.fold (fun token properties defs ->
if properties.tk_is_declared then
......@@ -89,7 +100,7 @@ let tokengadtdef grammar =
} :: defs
) grammar.tokens []
) grammar.tokens [errordata]
IIComment "The indexed type of terminal symbols.";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment