Home
last modified time | relevance | path

Searched refs:yylval (Results 1 – 25 of 69) sorted by relevance

123

/original-bsd/local/ditroff/ditroff.okeeffe/pic/
H A Dpicl.l55 yylval.i = yytext[2];
61 <A>print return(yylval.i = PRINT);
62 <A>box return(yylval.i = BOX);
64 <A>arc return(yylval.i = ARC);
66 <A>arrow return(yylval.i = ARROW);
68 <A>line return(yylval.i = LINE);
69 <A>move return(yylval.i = MOVE);
70 <A>"[]" return(yylval.i = BLOCK);
146 <A>to return(yylval.i = TO);
147 <A>at return(yylval.i = AT);
[all …]
/original-bsd/usr.bin/mklocale/
H A Dlex.l30 \'.\' { yylval.rune = yytext[1];
33 '\\a' { yylval.rune = '\a';
35 '\\b' { yylval.rune = '\b';
37 '\\f' { yylval.rune = '\f';
39 '\\n' { yylval.rune = '\n';
41 '\\r' { yylval.rune = '\r';
43 '\\t' { yylval.rune = '\t';
45 '\\v' { yylval.rune = '\v';
67 SPACE { yylval.i = _S; return(LIST); }
84 yylval.str = vbuf;
[all …]
/original-bsd/local/ditroff/ditroff.okeeffe/grap/
H A Dgrapl.l35 <A>line return(yylval.i = LINE);
72 <A>new return(yylval.i = NEW);
82 <A>up return(yylval.i = UP);
100 <A>to return(yylval.i = TO);
102 <A>at return(yylval.i = AT);
104 <A>in return(yylval.i = IN);
105 <A>out return(yylval.i = OUT);
106 <A>off return(yylval.i = OFF);
144 yylval.i = yytext[2];
147 yylval.p = tostring(yytext);
[all …]
/original-bsd/old/awk/
H A Dawk.lx.l18 extern int yylval;
74 "!=" { yylval = NE; RETURN(RELOP); }
77 "<" { yylval = LT; RETURN(RELOP); }
78 "<=" { yylval = LE; RETURN(RELOP); }
79 "==" { yylval = EQ; RETURN(RELOP); }
80 ">=" { yylval = GE; RETURN(RELOP); }
81 ">" { yylval = GT; RETURN(RELOP); }
83 "++" { yylval = INCR; RETURN(INCR); }
153 else yylval = yytext[1];
190 extern int yylval;
[all …]
/original-bsd/contrib/awk.research/
H A Dawk.lx.l33 extern YYSTYPE yylval;
100 <A>"!=" { yylval.i = NE; RET(NE); }
103 <A>"<" { yylval.i = LT; RET(LT); }
104 <A>"<=" { yylval.i = LE; RET(LE); }
105 <A>"==" { yylval.i = EQ; RET(EQ); }
106 <A>">=" { yylval.i = GE; RET(GE); }
107 <A>">" { yylval.i = GT; RET(GT); }
134 yylval.cp =
189 yylval.i = n;
193 yylval.cp =
[all …]
/original-bsd/local/ditroff/ditroff.okeeffe/ideal/
H A Didlex.l5 extern int lineno, yylval;
75 <PROGRAM>box return(yylval = BOX);
76 <PROGRAM>var return(yylval = VAR);
81 <PROGRAM>to return(yylval = TO);
90 <PROGRAM>at return(yylval = AT);
94 yylval = lookup(&yytext[0]);
100 yylval = (int) fextlgen(temp);
184 yylval = (int) temp;
199 yylval = (int) temp;
218 return (yylval = LBRACE);
[all …]
/original-bsd/old/as.tahoe/
H A Dasscan1.c74 switch(yylval = val){ in yylex()
76 yylval = val = PARSEEOF; in yylex()
91 yylval = (int)locxp; in yylex()
101 gptr(yylval, bufptr); in yylex()
102 lastnam = (struct symtab *)yylval; in yylex()
106 gchar(yylval, bufptr); in yylex()
119 gint(yylval, bufptr); in yylex()
120 lineno += yylval; in yylex()
133 gptr(yylval, bufptr); in yylex()
143 ((struct exp *)yylval)->e_xvalue); in yylex()
[all …]
H A Dasexpr.c258 lexpr = yukkyexpr(val, yylval); in factor()
262 lexpr = (struct exp *)yylval; in factor()
298 yylval = ((struct exp *)np)->e_xvalue;
299 if (yylval < 0) {
300 yylval = -yylval;
301 yylval--;
303 if (lgensym[yylval] == 1)
306 yylval--;
307 genref[yylval] = 1;
309 (void)sprintf(yytext, "L%d\001%d", yylval, lgensym[yylval] + off);
[all …]
H A Dasparse.c129 np = (struct symtab *)yylval; in yyparse()
209 np = (struct symtab *)yylval; in yyparse()
280 stringp = (struct strdesc *)yylval; in yyparse()
295 np = (struct symtab *)yylval; in yyparse()
310 np = (struct symtab *)yylval; in yyparse()
337 np = (struct symtab *)yylval; in yyparse()
768 stpt = (struct symtab *)yylval; in yyparse()
816 stpt = (struct symtab *)yylval; in yyparse()
842 np = (struct symtab *)yylval; in yyparse()
863 stpt = (struct symtab *)yylval; in yyparse()
[all …]
H A Dasexpr.h66 if (INTOKSET(val, YUKKYEXPRBEG)) xp = yukkyexpr(val, yylval); \
67 else xp = (struct exp *) yylval; \
89 regno = yylval; \
H A Dasscan4.c40 yylval = -1;
49 yylval = 1;
80 yylval = ((ch - '0') + 1);
83 yylval = -((ch - '0') + 1);
156 yylval = -intval;
/original-bsd/old/as.vax/
H A Dasscan1.c77 switch(yylval = val){ in yylex()
79 yylval = val = PARSEEOF; in yylex()
94 yylval = (int)locxp; in yylex()
104 gptr(yylval, bufptr); in yylex()
105 lastnam = (struct symtab *)yylval; in yylex()
109 gchar(yylval, bufptr); in yylex()
122 gint(yylval, bufptr); in yylex()
123 lineno += yylval; in yylex()
136 gptr(yylval, bufptr); in yylex()
146 ((struct exp *)yylval)->e_xvalue); in yylex()
[all …]
H A Dasexpr.c279 lexpr = yukkyexpr(val, yylval); in factor()
283 lexpr = (struct exp *)yylval; in factor()
319 yylval = ((struct exp *)np)->e_xvalue;
320 if (yylval < 0) {
321 yylval = -yylval;
322 yylval--;
324 if (lgensym[yylval] == 1)
327 yylval--;
328 genref[yylval] = 1;
330 (void)sprintf(yytext, "L%d\001%d", yylval, lgensym[yylval] + off);
[all …]
H A Dasexpr.h70 if (INTOKSET(val, YUKKYEXPRBEG)) xp = yukkyexpr(val, yylval); \
71 else xp = (struct exp *) yylval; \
93 regno = yylval; \
H A Dasscan4.c43 yylval = -1;
52 yylval = 1;
87 yylval = ((ch - '0') + 1);
90 yylval = -((ch - '0') + 1);
163 yylval = -intval;
/original-bsd/old/htable/
H A Dscan.l28 yylval.number = KW_NET;
33 yylval.number = KW_GATEWAY;
38 yylval.number = KW_HOST;
43 yylval.namelist = newname(yytext);
48 yylval.namelist = newname(yytext);
55 yylval.namelist = newname(yytext);
60 yylval.number = atoi(yytext);
/original-bsd/usr.bin/pascal/pdx/command/
H A Dtoken.l66 ^sh { BEGIN 0; yylval.y_string = NIL; return(SH); }
71 0{n} { yylval.y_long = octal(yytext); return(INT); }
72 0x{h} { yylval.y_long = hex(yytext); return(INT); }
73 {n} { yylval.y_long = atol(yytext); return(INT); }
76 {string} { yylval.y_string = yytext; return(STRING); }
77 "%dp" { yylval.y_long = (long) DP; return(INT); }
79 {char} { return(yylval.y_int = yytext[0]); }
98 yylval.y_int = tokval(p);
128 yylval.y_sym = p;
134 yylval.y_long = 0L;
[all …]
/original-bsd/usr.sbin/config.new/
H A Dscan.l82 config-dependent { yylval.val = FI_CONFIGDEP; return FFLAG; }
83 device-driver { yylval.val = FI_DRIVER; return FFLAG; }
84 needs-count { yylval.val = FI_NEEDSCOUNT; return FFLAG; }
85 needs-flag { yylval.val = FI_NEEDSFLAG; return FFLAG; }
88 {PATH} { yylval.str = intern(yytext); return PATHNAME; }
89 {WORD} { yylval.str = intern(yytext); return WORD; }
/original-bsd/old/cpp/
H A Dyylex.c41 if (*inp=='0') yylval= (inp[1]=='x' || inp[1]=='X') ? in yylex()
43 else yylval=tobinary(inp,10); in yylex()
49 yylval= (sp->value==0) ? 0 : 1; in yylex()
57 while (*s) if (*s++!=inp[2]) ++s; else {yylval= *s; goto ret;} in yylex()
58 if (inp[2]<='9' && inp[2]>='0') yylval=c=tobinary(inp+2,8); in yylex()
59 else yylval=inp[2]; in yylex()
60 } else yylval=inp[1]; in yylex()
/original-bsd/old/pcc/mip/
H A Dscan.c576 yylval.intval = id; in yylex()
698 yylval.intval = 0; in yylex()
742 yylval.intval = NE; in yylex()
748 yylval.intval = DECR; in yylex()
753 yylval.intval=STREF; in yylex()
759 yylval.intval = INCR; in yylex()
775 yylval.intval = LS; in yylex()
779 yylval.intval = LE; in yylex()
785 yylval.intval = RS; in yylex()
789 yylval.intval = GE; in yylex()
[all …]
/original-bsd/usr.bin/pascal/src/
H A Dyylex.c79 yylval = yyline; in yylex()
102 yylval = (int) *ip; in yylex()
105 yylval = yyline; in yylex()
129 yylval = copystr(token); in yylex()
137 yylval = copystr(token); in yylex()
175 yylval = copystr(token); in yylex()
211 yylval = copystr(token); in yylex()
326 yylval = c; in yylex()
/original-bsd/local/kerberosIV/compile_et/
H A Det_lex.lex.l19 \"{PC}*\" { register char *p; yylval.dynstr = ds(yytext+1);
20 if (p=rindex(yylval.dynstr, '"')) *p='\0';
24 {AN}* { yylval.dynstr = ds(yytext); return STRING; }
/original-bsd/usr.bin/rdist/
H A Dgram.y246 yylval.string = makestr(yytext); in yylex()
282 yylval.intval = COMPARE; in yylex()
286 yylval.intval = REMOVE; in yylex()
290 yylval.intval = VERIFY; in yylex()
294 yylval.intval = WHOLE; in yylex()
298 yylval.intval = YOUNGER; in yylex()
302 yylval.intval = FOLLOW; in yylex()
306 yylval.intval = IGNLNKS; in yylex()
321 yylval.string = makestr(yytext); in yylex()
324 yylval.subcmd = makesubcmd(c); in yylex()
/original-bsd/old/lex/
H A Dparser.y226 yylval = 0;
400 yylval = (int)buf;
413 yylval = (int)token;
564 yylval = (int)t;
586 yylval = token[0];
634 yylval = (int)p;
663 yylval = token[0];
669 yylval = c;
700 strpt(yylval);
703 allprint(yylval);
[all …]
/original-bsd/games/atc/
H A Dlex.l30 [0-9]+ { yylval.ival = atoi(yytext); return(ConstOp); }
39 [wedcxzaq] { yylval.cval = *yytext; return (DirOp); }

123