代码搜索结果
找到约 10,000 项符合
Y 的代码
tiny.y
/****************************************************/
/* File: tiny.y */
/* The TINY Yacc/Bison specification file */
/* Compiler Construction: Princi
c.y
/*
* C.Y
* Grammar file for C Compiler
*
* Copyright (c) 2001 by Ren Qi and Lin Ying
* All Rights Reserved.
*
*/
%{
#include "Common.h"
#include "Debug.h"
#include "Error.h"
y.out
state 0
$accept : _translation_unit $end
idTYPEDEF shift 27
kAUTO shift 13
kREGISTER shift 14
kSTATIC shift 15
kEXTERN shift 17
kTYPEDEF shift 16
kINT shift 18
kLONG shi
gram.y
%token IDENTIFIER CONSTANT STRING_LITERAL SIZEOF
%token PTR_OP INC_OP DEC_OP LEFT_OP RIGHT_OP LE_OP GE_OP EQ_OP NE_OP
%token AND_OP OR_OP MUL_ASSIGN DIV_ASSIGN MOD_ASSIGN ADD_ASSIGN
%token SUB_ASSIGN
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 *