代码搜索结果
找到约 10,000 项符合
Y 的代码
expression.y
%{
{*
计算简单的数学表达式的yacc程序
编译:yacc Expression ExpressionY
*}
unit ExpressionY;
interface
uses
SysUtils, LexLib, YaccLib, ExpressionL;
%}
%token NAME NUMBER
%%
statement: NAME '=' expression
sentence.y
%{
{*
* 识别简单英语句子的yacc程序
编译:yacc sentence sentenceyacc.dpr
*}
program SentenceYacc;
{$APPTYPE CONSOLE}
uses
SysUtils, LexLib, YaccLib, Sentence;
%}
%token Noun Pron Verb Adv Adj Prep Conj
%
parse.y
%{
#define YYPARSER /* distinguishes Yacc output from other code files */
#include "globals.h"
#include "util.h"
#include "scan.h"
#include "parse.h"
static char * savedFunName; /* for use
y.output
state 0
$accept : _program $end
ID shift 3
. error
program goto 1
exp goto 2
state 1
$accept : program_$end
$end accept
. error
state 2
program : exp_ (1
getdate.y
%{
/* Parse a string into an internal time stamp.
Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under
parser.y
/***************************************************************************
parser.y (IDL yacc parser and tree generation)
Copyright (C) 1998, 1999 Andrew T. Veliath
This library is fr
parser.y
%{
#include
#include
#include
#include
#include "sql_parser.h"
#include "sql_tree.h"
#include "mem.h"
int sqlerror (char *);
int sqllex ();
extern sql_state
parser.y
/* SPIM S20 MIPS simulator.
Parser for instructions and assembler directives.
Copyright (C) 1990-2000 by James Larus (larus@cs.wisc.edu).
ALL RIGHTS RESERVED.
SPIM is distributed under t