yacc: yet another compiler compiler
yacc:另一个编译器的编译器
Lex and yacc are a matched pair of tools.
lex和yacc是一对配对工具。
Imagine a yacc grammar something like this.
设想一个类似这样的yacc语法。
Programs using yacc, but not lex, are rarer.
使用yacc而不使用lex的程序比较罕见。
Lex and yacc are tools for building programs.
lex和yacc是编译程序的工具。
This is where the UNIX lex and yacc tools are useful.
在这种情况下,UNIXlex和yacc工具就很有用处了。
Yacc: This tool is standard on most UNIX operating systems.
Yacc:这个工具是大多数UNIX操作系统的标准组件。
Might have a corresponding yacc grammar containing the line.
这样,我们前面使用以上语句的例子可能会有相应的包含有下面一行的yacc语法。
Lex and yacc are very good at parsing reasonably simple file formats.
lex和yacc非常擅长解析相当简单的文件格式。
Lex and yacc can be used to parse fairly simple and regular grammars.
lex和yacc可以用来解析相当简单和规则的语法。
This grammar is ambiguous; yacc can't figure out what's going on.
该语法是不明确的;所以yacc无法指出接下来将做什么。
The code provided should work in all major versions, such as MKS yacc.
给出的代码应该适用于所有主流版本,比如MKSyacc。
Yacc files, like lex files, come in sections separated by % % markers.
类似于lex文件,yacc文件也是由使用% %标志隔开的部分构成。
When yacc gets the "c" or "z," it knows enough to determine which rule to use.
当yacc获得“c”或“z”时,它所知道的足以确定将使用哪一个规则。
Yacc allows you to refer to the components of an expression by symbolic names.
yacc允许您通过符号名引用表达式的组成部分。
For instance, code in many programming languages can be read using lex and yacc.
例如,可以使用lex和yacc读取很多编程语言的代码。
In this tutorial, you'll examine how to use lex and yacc, first to build a calculator.
在本教程中,首先您将研究如何使用lex和yacc来构建一个计算器。
External DSLs build a new language grammar, requiring tools like lexx and yacc or Antlr.
外部DSLs可构建一个新语法,构建时需要使用lexx和yacc或Antlr等工具。
The first section of a yacc file defines the objects that the parser will manipulate and generate.
yacc文件的第一部分定义了解析器将要处理和生成的对象。
Yacc takes sets of tokens and assembles them into higher-level constructs, analogous to sentences.
yacc接受成组的记号,并将它们装配为高层次的结构,类似于句子。
In fact, while lex and yacc are almost always mentioned in the same breath, they can be used separately.
实际上,尽管lex和yacc几乎总是被同时提到,但是它们可以单独使用。
Yacc is designed to work with the output of Lex, although you can write your own code to fill that gap.
yacc设计用来处理lex的输出,不过您也可以编写自己的代码来完成此任务。
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代码就可以编写完该程序。
The general way this is done is to define a data type to contain objects that yacc will be manipulating.
通常解决此问题的方法是定义一个容纳yacc将要处理的对象的数据类型。
The first article will introduce lex and yacc in more general terms, exploring what they do and how they do it.
第一篇文章将使用更为通用的术语介绍lex和yacc,研究它们可以做什么以及怎样去做。
By using the lex and yacc tools, you can build a parsing engine that processes text according to specific rules.
通过使用lex和yacc工具,您可以构建一个分析引擎,根据特定的规则来处理文本。
game-writing saga shows how the authors put together a configuration file parser for the game using lex and yacc.
游戏编写报告的SDL 用法,第 4 部分:lex和yacc 构建用于脚本和 GUI 设计的语法分析器 (developerWorks,2000 年 5 月)展示了作者如何使用 lex 和 yacc 为 游戏整合出一个配置文件解析器。
When yacc is run with the -d option, it generates a header file defining constants. Thus, our earlier lex example using.
当使用- d选项来运行yacc时,它会生成一个定义常量的头文件。
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是一种语法分析器,它可以读取文本并用来将单词序列转换为便于处理的结构化的格式。
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是一种语法分析器,它可以读取文本并用来将单词序列转换为便于处理的结构化的格式。
应用推荐