代码搜索结果
找到约 10,000 项符合
Y 的代码
grep.y
%{
#include "grep.h"
%}
%union
{
int val;
char* str;
Re2 re;
}
%type expr prog
%type expr0 expr1 expr2 expr3 expr4
%token LCLASS
%token LCHAR
%token LLPAREN LRPAREN LALT LS
bc.y
%{
#include
#include
#include
#define bsp_max 5000
Biobuf *in;
Biobuf bstdin;
Biobuf bstdout;
char cary[1000];
char* cp = { cary };
char string[1000];
char* str = {
cc.y
%{
#include "cc.h"
%}
%union {
Node* node;
Sym* sym;
Type* type;
struct
{
Type* t;
char c;
} tycl;
struct
{
Type* t1;
Type* t2;
} tyty;
struct
{
char* s;
long l;
} sval;
long
parser.y
%token CHAR CCL NCCL STR DELIM SCON ITER NEWE NULLS
%left SCON '/' NEWE
%left '|'
%left '$' '^'
%left CHAR CCL NCCL '(' '.' STR NULLS
%left ITER
%left CAT
%left '*' '+' '?'
%{
# include "ldefs.h"
#de
picy.y
%{
#include
#include "pic.h"
#include
#include
#include
YYSTYPE y;
extern void yyerror(char *);
extern int yylex(void);
%}
%token BOX 1 /* DON'T CHANGE
units.y
%{
#include
#include
#include
enum
{
Ndim = 15, /* number of dimensions */
Nsym = 40, /* size of a name */
Nvar = 203, /* hash table size */
Maxe = 695, /* log of large
smtpd.y
%{
#include "common.h"
#include
#include "smtpd.h"
#define YYSTYPE yystype
typedef struct quux yystype;
struct quux {
String *s;
int c;
};
Biobuf *yyfp;
YYSTYPE *bang;
extern Biobuf bin;
hoc.y
%{
#include "hoc.h"
#define code2(c1,c2) code(c1); code(c2)
#define code3(c1,c2,c3) code(c1); code(c2); code(c3)
%}
%union {
Symbol *sym; /* symbol table pointer */
Inst *inst; /* machine instructio
calc.y
%{
typedef struct Exp Exp;
enum {
NUM,
DOT,
DOLLAR,
ADD,
SUB,
MUL,
DIV,
FRAC,
NEG,
};
struct Exp {
int ty;
long long n;
Exp *e1;
Exp *e2;
};
typedef Exp* Expptr;
#define YYSTYPE Expptr
gram.y
%{#include "defs.h"
%}
%term NAME SHELLINE START MACRODEF COLON DOUBLECOLON GREATER AMPER AMPERAMPER
%union
{
struct shblock *yshblock;
depblkp ydepblock;
nameblkp ynameblock;
}
%type