inline-rename.opp.exp 292 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
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:
| x = c x0 = c
    {let y =
  let x = x0 in
  ( x )
in
 x + y }

c:
| x = T
    { x }

%%