1.Yacc is a grammar parser; it reads text and can be used to turn a sequence of words into a structured format for processing.
Yacc是一种语法分析器,它可以读取文本并用来将单词序列转换为便于处理的结构化的格式。
2.This means that if yacc would have to read two tokens before it knew which action to take, it would be unable to parse this grammar.
这就意味着,如果yacc在知道采取哪个动作之前,必须读取两个标记,那么它将无法解析该语法。
3.Here's a simple example of a program that can be written in a page of yacc and a half-page of lex code.
这里是一个简单的示例程序,只需要一页yacc代码和半页lex代码就可以编写完该程序。
4.In some cases, Yacc fails to produce a parser when given a set of specifications.
一些情况下,当给定一个规范集合时,Yacc生成词法分析器会失败。
5.Throughout these articles, the names "lex" and "yacc" will be used to include also flex and bison, the GNU versions of these utilities.
在这两篇文章的所有内容中,“lex”和“yacc”这两个名字所代表的也包括这些工具的GNU版本flex和bison。
6.Yacc allows you to refer to the components of an expression by symbolic names.
yacc允许您通过符号名引用表达式的组成部分。
7.This data type is a C union object, and is declared in the first section of a yacc file using a %union declaration.
这个数据类型是一个Cunion对象,在yacc文件的第一部分使用%union声明来定义。
8.The first section of a yacc file defines the objects that the parser will manipulate and generate.
yacc文件的第一部分定义了解析器将要处理和生成的对象。
9.Normally we would use the compiler generator tools lex and yacc to build that part of the program which recognizes an arithmetic expression.
一般说来,我们将要通过规定的编译工具和另外的某编译器来生成能计算这个算术运算的目标程式。
10.Lex and yacc are a matched pair of tools.
lex和yacc是一对配对工具。