All pastes #534081 Raw Edit

madmax

public text v1 · immutable
·published 2007-06-03 17:35 UTC
rendered paste body
/* union declared with fields i and c */

expr : INTEGER { $<i>$ = 3; }
     | CHAR    { $<c>$ = 'a'; }
     ;

other : expr '!' { $$ = foo($1); }
      ;

/* error: "$1 is untyped" */