代码搜索结果

找到约 10,000 项符合 Y 的代码

lazycalc.y

/* !declBegin! */ %{ #include #include #include int yylex(void); void yyerror(const char *errMsg); /* Typedef typical unary function. */ typedef double (*MathFn

polycalc.y

/* !declBegin! */ %{ #include #include #include int yylex(void); void yyerror(const char *errMsg); /* Typedef typical unary function. */ typedef double (*MathFn

calc.y

/* Infix notation calculator--calc */ %{ #include #include #define YYSTYPE double int yylex(void); void yyerror(const char *errMsg); %} /* zyacc declarations */ %token NUM_TOK %

semtest.y

/* Test for %tests. Resolve operator priorities using %tests. */ %token (int $v) DIGIT %{ #include #include static unsigned char pri[128]; void yyerror(); int yylex(); e

attrfrnt.y

/* Test for attribute front-end. */ %token (%out int $a, %out float $b) XX %token (%in int $a) YY %% A(%in int $a): S($x +2, $a+3, $y); S(int $a, %in float $b, int $c) : XX($a, $b)

assocprc.y

/* Simple arith. expr. grammar (single-digit #s) with ambiguous * grammar using assoc/prec info. */ %{ #include void yyerror(const char *); int yylex(void); typedef int YYSTYPE; %} %

loc.y

/* Test for yyloc. Grammar accepts parenthesized lists, printing out * the beginning and end coordinates of each complete list. */ %{ #include static void yyerror(); int yylex(); %}

zprof.y

/* File: zprof.y Purpose: ANSI-C parser. Outputs source with profiling counters added. Last Update Time-stamp: Copyright (C) 1995, 1997 Zerksis D. Umrigar See the file LIC

inattrib.y

/* Test for input attributes within closure. */ /* Reads a letter c (either 'a', 'A', 'b', 'B', 'c' or 'C') followed * by a number n. Prints out n * code(c) + c, where code('a') == 1, * code('A') =

conflicts.y

/* Tests for conflicts. */ %expect 4 %% S : A 'z' | B 'z' | C 'z' ; /* 2 RR and 2 SR conflicts, tho' not all may be reported. */ A : 'a' | 'a' | 'a' 'z' ; /* Should report 1 SR confl