{ $$ = mkchain($1, CHNULL); }
{ $$ = hookup($1, mkchain($3,CHNULL) ); }
| SLPAR expr SRPAR { $$ = $2; }
| expr addop expr %prec SPLUS
{ $$ = mkexpr($2, $1, $3); }
{ $$ = mkexpr(OPSTAR, $1, $3); }
{ $$ = mkexpr(OPSLASH, $1, $3); }
{ $$ = mkexpr(OPPOWER, $1, $3); }
$$ = mkexpr(OPNEG, $2, ENULL);
| expr relop expr %prec SEQ
{ $$ = mkexpr($2, $1, $3); }
{ NO66(".EQV. operator");
$$ = mkexpr(OPEQV, $1,$3); }
{ NO66(".NEQV. operator");
$$ = mkexpr(OPNEQV, $1, $3); }
{ $$ = mkexpr(OPOR, $1, $3); }
{ $$ = mkexpr(OPAND, $1, $3); }
{ $$ = mkexpr(OPNOT, $2, ENULL); }
{ NO66("concatenation operator //");
$$ = mkexpr(OPCONCAT, $1, $3); }
addop: SPLUS { $$ = OPPLUS; }
| SMINUS { $$ = OPMINUS; }
relop: SEQ { $$ = OPEQ; }
{ $$ = mkprim($1, PNULL, CHNULL); }
{ NO66("substring operator :");
$$ = mkprim($1, PNULL, $2); }
| name SLPAR funarglist SRPAR
{ $$ = mkprim($1, mklist($3), CHNULL); }
| name SLPAR funarglist SRPAR substring
{ NO66("substring operator :");
$$ = mkprim($1, mklist($3), $5); }
substring: SLPAR opt_expr SCOLON opt_expr SRPAR
{ $$ = mkchain($2, mkchain($4,CHNULL)); }
{ if($1->vclass == CLPARAM)
( (struct Paramblock *) ($1) ) -> paramval);
simple_const: STRUE { $$ = mklogcon(1); }
| SFALSE { $$ = mklogcon(0); }
| SHOLLERITH { $$ = mkstrcon(toklen, token); }
| SICON = { $$ = mkintcon( convci(toklen, token) ); }
| SRCON = { $$ = mkrealcon(TYREAL, convcd(toklen, token)); }
| SDCON = { $$ = mkrealcon(TYDREAL, convcd(toklen, token)); }
complex_const: SLPAR uexpr SCOMMA uexpr SRPAR
$$ = mkbitcon(4, toklen, token); }
{ NOEXT("octal constant");
$$ = mkbitcon(3, toklen, token); }
{ NOEXT("binary constant");
$$ = mkbitcon(1, toklen, token); }
| fexpr addop fexpr %prec SPLUS
{ $$ = mkexpr($2, $1, $3); }
{ $$ = mkexpr(OPSTAR, $1, $3); }
{ $$ = mkexpr(OPSLASH, $1, $3); }
{ $$ = mkexpr(OPPOWER, $1, $3); }
| addop fexpr %prec SSTAR
$$ = mkexpr(OPNEG, $2, ENULL);
{ NO66("concatenation operator //");
$$ = mkexpr(OPCONCAT, $1, $3); }