代码搜索结果

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

gram.y

%{ #include #ifndef UNIX #include #endif #include "RT.h" #include "command.h" #define YYDEBUG 1 void CommandPrompt(); int yyerror(char *msg); int yylex(); %} %u

gram.y

%{ #include #ifndef UNIX #include #endif #include "RT.h" #include "command.h" #define YYDEBUG 1 void CommandPrompt(); int yyerror(char *msg); int yylex(); %} %u

gram.y

%{ #include #ifndef UNIX #include #endif #include "BT.h" #include "command.h" void CommandPrompt(); int yyerror(char *msg); int yylex(); %} %union { BTkey *

parser.y

%{ #include #include #include #include "calc.h" %} %token NUM %left '-' '+' '*' '/' %% input: /* empty*/ | input line ; line: '\n' | exp '\n' { printf("%d\n", $1

test.y

%{ /* first section */ %} %% %{ /* second section */ %} S : /* empty */ { printf("S -> epsilon\n"); } | '(' S ')' S { printf("S -> ( S ) S\n"); } %ifdef ABC /* see how preprocessor can be used *

ansic.y

%token AUTO REGISTER STATIC EXTERN TYPEDEF VOID CHAR SHORT INT LONG FLOAT DOUBLE SIGNED UNSIGNED CONST VOLATILE STRUCT UNION ENUM CASE DEFAULT IF SWITCH WHILE DO FOR GOTO CONTINUE BREAK RETURN ELSE

error.y

%% S: error %% main(){printf("yyparse() = %d\n",yyparse());} yylex(){return-1;} yyerror(s)char*s;{printf("%s\n",s);}

ftp.y

/* * Copyright (c) 1985, 1988 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that the above copyrig