Commit eb2b1ff7 authored by POTTIER Francois's avatar POTTIER Francois

Fix the treatment of the [error] token by --only-preprocess-for-ocamlyacc.

parent 0b439b64
Pipeline #62443 passed with stages
in 23 seconds
# Changes
## 2018/11/XX
## 2019/02/XX
* Relax the syntax of point-free actions to allow `< >` (with arbitrary
whitespace inside the angle brackets) instead of just `<>`.
......@@ -10,6 +10,11 @@
the error message now shows the entire cycle,
as opposed to just one symbol that participates in the cycle.
* Fix the treatment of the `error` token when printing the grammar for
`ocamlyacc`. Its semantic value must not be referred to; a unit value
must be used instead. The switch `--only-preprocess-for-ocamlyacc`
remains undocumented. (Reported by kris.)
## 2018/11/13
* In `.mly` files, a new syntax for rules has been introduced, which is
......@@ -161,7 +161,7 @@ let print_semantic_action f g branch =
let prop = StringMap.find symbol g.tokens in
prop.tk_ocamltype = None
with Not_found ->
symbol = "error"
(* Define the variable [id] as a synonym for [$(i+1)]. *)
(* As an exception to this rule, if [symbol] is a terminal symbol
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