Commit 4cdd6903 authored by POTTIER Francois's avatar POTTIER Francois
Browse files

Updated a misleading comment.

parent 7f8bc1de
......@@ -672,7 +672,9 @@ let check_parameterized_grammar_is_well_defined grammar =
StringMap.iter (check_identifier_reference grammar prule)
(List.fold_left Parameters.identifiers StringMap.empty parameters);
(* Check the %prec is a valid reference to a token. *)
(* If this producer seems to be a reference to a token, make sure it
is a real token, as opposed to a pseudo-token introduced in a
priority declaration. *)
if not ((StringMap.find s grammar.p_tokens).tk_is_declared
|| List.mem s reserved) then
Supports Markdown
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