Commit 87e5ffa8 authored by POTTIER Francois's avatar POTTIER Francois

Moved inline-shift and inlined-dollar from bench/bad to bench/good.

These grammars are now accepted.
parent a1307125
File "inline-shift.mly", line 5, characters 3-11:
Error: You cannot use b and the $i syntax in this branch since the definition of b has to be inlined.
File "inlined-dollar.mly", line 9, characters 8-9:
Error: You cannot use $i syntax in this branch since its definition will be inlined.
Warning: you are using the standard library and/or the %inline keyword. We
recommend switching on --infer in order to avoid obscure type error messages.
Warning: you are using the standard library and/or the %inline keyword. We
recommend switching on --infer in order to avoid obscure type error messages.
%start a
%token <int> T
%type <int> a
%%
a:
| _10 = T _20 = T _2 = c _4 = c
{let _3 =
( 0 )
in
let _1 =
let _2 = _20 in
let _1 = _10 in
()
in
( _2 + _3 + _4 )}
c:
| x = T
{ ( x + 1 )}
%%
Warning: you are using the standard library and/or the %inline keyword. We
recommend switching on --infer in order to avoid obscure type error messages.
Warning: you are using the standard library and/or the %inline keyword. We
recommend switching on --infer in order to avoid obscure type error messages.
%start t
%token <int> B
%token <int> A
%type <unit> t
%%
t:
| _1 = B _10 = A
{let y =
let _1 = _10 in
(
_1
)
in
(
y
)}
%%
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