国产高清精品免费区-男女一进一出抽搐免费视频-中日韩一二三级黄色永久视频-日韩精品人妻一区二区免费视频-日本久久视频在线观看-99热这里只有精品88热-亚洲韩国黄色最新短视频一区-日韩伦理在线观看免费全集-国产av一区二区三区天堂

YACC

YACC

 英

  • 網(wǎng)絡(luò)編譯器(Yet Another Compiler Compiler);另一個編譯器;分析器

例句

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一種語法分析可以讀取文本用來單詞序列轉(zhuǎn)換便于處理結(jié)構(gòu)化格式

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知道采取哪個動作之前必須讀取兩個標(biāo)記那么無法解析語法

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代碼可以編寫完程序

In some cases, Yacc fails to produce a parser when given a set of specifications.

一些情況下當(dāng)給定一個規(guī)范集合Yacc生成詞法分析器失敗

Throughout these articles, the names "lex" and "yacc" will be used to include also flex and bison, the GNU versions of these utilities.

文章所有內(nèi)容,“lexyacc名字代表包括這些工具GNU版本flexbison

Yacc allows you to refer to the components of an expression by symbolic names.

yacc允許通過符號引用表達(dá)式組成部分

This data type is a C union object, and is declared in the first section of a yacc file using a %union declaration.

這個數(shù)據(jù)類型一個Cunion對象yacc文件第一部分使用%union聲明定義

The first section of a yacc file defines the objects that the parser will manipulate and generate.

yacc文件第一部分定義解析器將要處理生成對象

Normally we would use the compiler generator tools lex and yacc to build that part of the program which recognizes an arithmetic expression.

一般說來我們將要通過規(guī)定編譯工具另外編譯生成計(jì)算這個算術(shù)運(yùn)算目標(biāo)程式

Lex and yacc are a matched pair of tools.

lexyacc一對配對工具

Yacc provides a general tool for imposing structure on the input to a computer program.

Yacc提供一個通用工具識別程序輸入結(jié)構(gòu)

The general way this is done is to define a data type to contain objects that yacc will be manipulating.

通常解決問題方法定義一個容納yacc將要處理對象數(shù)據(jù)類型

For instance, code in many programming languages can be read using lex and yacc.

例如可以使用lexyacc讀取很多編程語言代碼

Yacc is designed to work with the output of Lex, although you can write your own code to fill that gap.

yacc設(shè)計(jì)用來處理lex輸出不過可以編寫自己代碼完成任務(wù)

Lex and yacc can be used to parse fairly simple and regular grammars.

lexyacc可以用來解析相當(dāng)簡單規(guī)則語法

One of the best things you can do to learn more about lex and yacc is to write a few toy programs.

為了深入學(xué)習(xí)lexyacc最好編寫一些用來消遣程序

Yacc takes sets of tokens and assembles them into higher-level constructs, analogous to sentences.

yacc接受記號它們裝配高層次結(jié)構(gòu)類似句子

This is where yacc comes in: yacc lets you describe what you want to do with tokens. A yacc grammar tends to look sort of like this

就是yaccyacc可以描述希望怎樣處理記號

Those tools we look at here do so, as does the popular compiler development tool YACC (and its variants).

我們這里研究工具這樣流行編譯開發(fā)工具YACC及其變體也是這樣

Yacc files, like lex files, come in sections separated by %% markers.

類似lex文件yacc文件也是使用%%標(biāo)志隔開部分構(gòu)成

External DSLs build a new language grammar, requiring tools like lexx and yacc or Antlr.

外部DSLs構(gòu)建一個語法構(gòu)建需要使用lexxyaccAntlr工具

JavaCC, like YACC, is designed to speed the process of developing parser logic for languages.

JavaCCYACC一樣加快語言解析器邏輯開發(fā)過程設(shè)計(jì)

Lex and yacc are very good at parsing reasonably simple file formats.

lexyacc非常擅長解析相當(dāng)簡單文件格式

Yacc then generates a function to control the input process.

Yacc生成一個函數(shù)控制輸入過程

Yacc: This tool is standard on most UNIX operating systems.

Yacc這個工具大多數(shù)UNIX操作系統(tǒng)標(biāo)準(zhǔn)組件

This grammar is ambiguous; yacc can't figure out what's going on.

語法明確所以yacc無法指出接下來什么

Lex and yacc are tools for building programs.

lexyacc編譯程序工具

The biggest limitation is that yacc is limited to one token of lookahead.

最大局限在于yacc限定一個預(yù)讀標(biāo)記

By using the lex and yacc tools, you can build a parsing engine that processes text according to specific rules.

通過使用lexyacc工具可以構(gòu)建一個分析引擎根據(jù)特定規(guī)則處理文本

What are lex and yacc, and why do people refer to them together?

lexyacc什么為什么人們同時提及它們

In this tutorial, you'll examine how to use lex and yacc, first to build a calculator.

教程首先研究如何使用lexyacc構(gòu)建一個計(jì)算器

Programs using yacc, but not lex, are rarer.

使用yacc使用lex程序比較罕見

In fact, while lex and yacc are almost always mentioned in the same breath, they can be used separately.

實(shí)際上盡管lexyacc幾乎總是同時提到但是它們可以單獨(dú)使用

This is where the UNIX lex and yacc tools are useful.

這種情況UNIXlexyacc工具用處

Most people never need to know what lex and yacc do.

大部分永遠(yuǎn)需要知道lexyacc可以什么

One thing you'll find if you play around a bit is that lex and yacc can be confusing to troubleshoot.

如果稍加研究發(fā)現(xiàn)lexyacc可以用于問題診斷

The code provided should work in all major versions, such as MKS yacc.

代碼應(yīng)該適用所有主流版本比如MKSyacc

While Yacc cannot handle all possible specifications, its power compares favorably with similar systems;

然而Yacc無法處理所有可能規(guī)范能力類似系統(tǒng)相比要好

When yacc is run with the -d option, it generates a header file defining constants. Thus, our earlier lex example using

當(dāng)使用-d選項(xiàng)運(yùn)行yacc生成一個定義常量文件

Yacc would create a header file (called y. tab. h by default) containing a line something like

yacc創(chuàng)建包含類似下面一行文件默認(rèn)y.tab.h)