| /plan9/sys/src/cmd/grap/ |
| H A D | grap.y | 41 %type <f> expr optexpr if_expr number assign 91 | PRINT expr { fprintf(stderr, "\t%g\n", $2); } 116 UP expr { labelmove($1, $2); } 117 | DOWN expr { labelmove($1, $2); } 118 | SIDE expr { labelmove($1, $2); /* LEFT or RIGHT only */ } 119 | WIDTH expr { labelwid($2); } 127 HEIGHT expr { frameht($2); } 128 | WIDTH expr { framewid($2); } 160 | IN expr { tickdir(IN, $2, 1); } 161 | OUT expr { tickdir(OUT, $2, 1); } [all …]
|
| H A D | for.c | 68 char *ifstat(double expr, char *thenpart, char *elsepart) in ifstat() argument 70 dprintf("if %g then <%s> else <%s>\n", expr, thenpart, elsepart? elsepart : ""); in ifstat() 71 if (expr) { in ifstat()
|
| /plan9/sys/src/cmd/pic/ |
| H A D | picy.y | 52 %type <f> expr if_expr asgn 84 | PRINT expr ST { printexpr($2); $$ = makenode(PLACE, 0); } 102 VARNAME '=' expr { $$=y.f=$3; makevar($1,VARNAME,y); checkscale($1); } 119 FOR name FROM expr TO expr BY optop expr DOSTR 121 | FOR name FROM expr TO expr DOSTR 123 | FOR name '=' expr TO expr BY optop expr DOSTR 125 | FOR name '=' expr TO expr DOSTR 134 expr 180 ATTR expr { makefattr($1, !DEFAULT, $2); } 182 | expr { makefattr(curdir(), !DEFAULT, $1); } [all …]
|
| H A D | for.c | 74 char *ifstat(double expr, char *thenpart, char *elsepart) in ifstat() argument 76 dprintf("if %g then <%s> else <%s>\n", expr, thenpart, elsepart? elsepart : ""); in ifstat() 77 if (expr) { in ifstat()
|
| /plan9/sys/src/cmd/acid/ |
| H A D | dbg.y | 19 %type <node> expr monexpr term stmnt name args zexpr slist 134 | Tif expr Tthen stmnt 138 | Tif expr Tthen stmnt Telse stmnt 142 | Tloop expr ',' expr Tdo stmnt 146 | Twhile expr Tdo stmnt 150 | Tret expr ';' 179 | expr 182 expr : castexpr 183 | expr '*' expr 187 | expr '/' expr [all …]
|
| H A D | expr.c | 75 expr(n->left, res); in olist() 76 expr(n->right, res); in olist() 82 expr(n->left, res); in oeval() 85 expr(res->cc, res); in oeval() 94 expr(n->left, res); in ocast() 108 expr(n->left, &l); in oindm() 126 expr(n->left, &l); in oindc() 170 expr(n->left, &l); in oindex() 171 expr(n->right, &r); in oindex() 208 expr(n->left, &l); in oappend() [all …]
|
| H A D | builtin.c | 146 expr(av[1], &resl); in match() 149 expr(av[0], &resi); in match() 198 expr(args, &res); in newproc() 234 expr(args, &res); in startstop() 251 expr(args, &res); in waitstop() 269 expr(args, &res); in start() 284 expr(args, &res); in stop() 302 expr(args, &res); in kill() 319 expr(args, &res); in status() 337 expr(args, &res); in reason() [all …]
|
| H A D | exec.c | 86 expr(n, &res); in execute() 90 expr(prnt, &xx); in execute() 94 expr(n, &res); in execute() 119 expr(n->left, ret->val); in execute() 126 expr(l, &res); in execute() 138 expr(l, &res); in execute() 145 expr(l->left, &res); in execute() 149 expr(l->right, &res); in execute() 370 expr(rval, &res); in windir() 371 expr(addr, &aes); in windir() [all …]
|
| /plan9/sys/src/cmd/hoc/ |
| H A D | hoc.y | 15 %type <inst> expr stmt asgn prlist stmtlist 33 | list expr '\n' { code2(printtop, STOP); return 1; } 36 asgn: VAR '=' expr { code3(varpush,(Inst)$1,assign); $$=$3; } 37 | VAR ADDEQ expr { code3(varpush,(Inst)$1,addeq); $$=$3; } 38 | VAR SUBEQ expr { code3(varpush,(Inst)$1,subeq); $$=$3; } 39 | VAR MULEQ expr { code3(varpush,(Inst)$1,muleq); $$=$3; } 40 | VAR DIVEQ expr { code3(varpush,(Inst)$1,diveq); $$=$3; } 41 | VAR MODEQ expr { code3(varpush,(Inst)$1,modeq); $$=$3; } 43 stmt: expr { code(xpop); } 45 | RETURN expr [all …]
|
| /plan9/sys/src/ape/cmd/expr/ |
| H A D | expr.y | 27 expression: expr NOARG = { 34 expr: '(' expr ')' = { $$ = $2; } 35 | expr OR expr = { $$ = conj(OR, $1, $3); } 36 | expr AND expr = { $$ = conj(AND, $1, $3); } 37 | expr EQ expr = { $$ = rel(EQ, $1, $3); } 38 | expr GT expr = { $$ = rel(GT, $1, $3); } 39 | expr GEQ expr = { $$ = rel(GEQ, $1, $3); } 40 | expr LT expr = { $$ = rel(LT, $1, $3); } 41 | expr LEQ expr = { $$ = rel(LEQ, $1, $3); } 42 | expr NEQ expr = { $$ = rel(NEQ, $1, $3); } [all …]
|
| H A D | mkfile | 4 TARG=expr 6 YFILES=expr.y
|
| /plan9/sys/src/cmd/cc/ |
| H A D | cc.y | 35 %type <node> name block stmnt cexpr expr xuexpr pexpr 294 expr 394 LCASE expr ':' 524 expr 531 expr 537 expr: 539 | expr '*' expr 543 | expr '/' expr 547 | expr '%' expr 551 | expr '+' expr [all …]
|
| /plan9/sys/src/cmd/spin/ |
| H A D | spin.y | 394 | vardcl ASGN expr { $$ = $1; 452 '[' expr ']' { $$ = nn($1, NAME, $4, ZN); } 500 | for_pre ':' expr DOTDOT expr ')' { 509 | SELECT '(' varref ':' expr DOTDOT expr ')' { 640 expr : '(' expr ')' { $$ = $2; } 641 | expr '+' expr { $$ = nn(ZN, '+', $1, $3); } 642 | expr '-' expr { $$ = nn(ZN, '-', $1, $3); } 643 | expr '*' expr { $$ = nn(ZN, '*', $1, $3); } 644 | expr '/' expr { $$ = nn(ZN, '/', $1, $3); } 645 | expr '%' expr { $$ = nn(ZN, '%', $1, $3); } [all …]
|
| /plan9/sys/src/cmd/8a/ |
| H A D | a.y | 29 %type <lval> con expr pointer offset 57 LNAME '=' expr 62 | LVAR '=' expr 531 | '(' expr ')' 536 expr: 538 | expr '+' expr 542 | expr '-' expr 546 | expr '*' expr 550 | expr '/' expr 554 | expr '%' expr [all …]
|
| /plan9/sys/src/cmd/va/ |
| H A D | a.y | 28 %type <lval> con expr pointer offset sreg 49 | LNAME '=' expr ';' 54 | LVAR '=' expr ';' 542 | '(' expr ')' 547 expr: 549 | expr '+' expr 553 | expr '-' expr 557 | expr '*' expr 561 | expr '/' expr 565 | expr '%' expr [all …]
|
| /plan9/sys/src/cmd/6a/ |
| H A D | a.y | 25 %type <lval> con expr pointer offset 52 LNAME '=' expr 57 | LVAR '=' expr 516 | '(' expr ')' 521 expr: 523 | expr '+' expr 527 | expr '-' expr 531 | expr '*' expr 535 | expr '/' expr 539 | expr '%' expr [all …]
|
| /plan9/sys/src/cmd/5a/ |
| H A D | a.y | 29 %type <lval> con expr oexpr pointer offset sreg spreg creg 51 | LNAME '=' expr ';' 56 | LVAR '=' expr ';' 232 | LTYPEJ cond con ',' expr ',' spreg ',' creg ',' creg oexpr 515 | LR '(' expr ')' 531 | LC '(' expr ')' 618 | '(' expr ')' 627 | ',' expr 632 expr: 634 | expr '+' expr [all …]
|
| /plan9/sys/src/cmd/disk/prep/ |
| H A D | calc.y | 33 top: expr { yyexp = $1; return 0; } 35 expr: NUMBER 38 | '(' expr ')' { $$ = $2; } 39 | expr '+' expr { $$ = mkOP(ADD, $1, $3); } 40 | expr '-' expr { $$ = mkOP(SUB, $1, $3); } 41 | expr '*' expr { $$ = mkOP(MUL, $1, $3); } 42 | expr '/' expr { $$ = mkOP(DIV, $1, $3); } 43 | expr '%' { $$ = mkOP(FRAC, $1, nil); } 44 | '-' expr %prec UNARYMINUS { $$ = mkOP(NEG, $2, nil); }
|
| /plan9/sys/src/cmd/ip/snoopy/ |
| H A D | filter.y | 24 filter : expr 27 expr : WORD 39 | WORD '(' expr ')' 41 | '(' expr ')' 43 | expr LOR expr 45 | expr LAND expr 47 | '!' expr
|
| /plan9/sys/src/cmd/ka/ |
| H A D | a.y | 27 %type <lval> con expr pointer offset sreg 48 | LNAME '=' expr ';' 53 | LVAR '=' expr ';' 688 | '(' expr ')' 693 expr: 695 | expr '+' expr 699 | expr '-' expr 703 | expr '*' expr 707 | expr '/' expr 711 | expr '%' expr [all …]
|
| /plan9/sys/src/cmd/qa/ |
| H A D | a.y | 29 %type <lval> con expr pointer offset sreg 50 | LNAME '=' expr ';' 55 | LVAR '=' expr ';' 952 | '(' expr ')' 957 expr: 959 | expr '+' expr 963 | expr '-' expr 967 | expr '*' expr 971 | expr '/' expr 975 | expr '%' expr [all …]
|
| /plan9/sys/src/cmd/db/ |
| H A D | command.c | 45 adrflg=expr(0); /* first address */ in command() 52 if (rdc()==',' && expr(0)) { /* count */ in command() 201 expr(1); in cmdsrc() 203 if (expr(0)) in cmdsrc() 234 expr(1); in cmdwrite() 252 } while (expr(0)); in cmdwrite()
|
| H A D | setup.c | 111 if (expr(0)) { in cmdmap() 117 if (expr(0)) in cmdmap() 121 if (expr(0)) in cmdmap()
|
| /plan9/sys/src/cmd/gs/src/ |
| H A D | stdpre.h | 169 #define DISCARD(expr) ((void)(expr)) argument 171 #define discard(expr) DISCARD(expr) argument
|
| /plan9/sys/src/cmd/grep/ |
| H A D | grep.y | 12 %type <re> expr prog 24 | expr newlines 34 expr: 36 | expr newlines expr0
|