The original example for define by Ulf Norell is currently only accepted by the Haskell backends.
|
define if e s = If e s (Block []) ; |
|
define for i c s b = Block [i, While c (Block [b, s])] ; |
Missing sanitization is a regression wrt. 2.9.1, introduced by #287.
The list constructors probably never worked.
The original example for
defineby Ulf Norell is currently only accepted by the Haskell backends.bnfc/examples/DefinedRules.cf
Lines 22 to 23 in 3da1b0e
make_(:)andmake_[].ifandfor(keyword clash, regression), wrong list constructors.(:) (a,b)instead of(a :: b).ifclashes withIf. Works in 2.9.1 with--force.Missing sanitization is a regression wrt. 2.9.1, introduced by #287.
The list constructors probably never worked.