CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - bnf
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - bnf - List
[
ELanguage
]
bnf
DL : 0
BNF 递归下降语法分析器 文法: E->E+T|T T->T*F|F F->(E)|i-BNF recursive grammar decline parser : E -
Date
: 2008-10-13
Size
: 3.42kb
User
:
keke
[
ELanguage
]
BNF_gram
DL : 0
分析器BNF文法,,我们学校的 点start-run it.-analyzer BNF grammar, and the point of our school and start-run it.
Date
: 2008-10-13
Size
: 85.04kb
User
:
赵宁
[
ELanguage
]
C0Compiler
DL : 0
自己写的一个C子集的编译程序,包括源码和说明文件,以及文法的扩充BNF表达式-himself wrote a subset of the C compiler, including source code and documentation, and the expansion of BNF grammar expression
Date
: 2008-10-13
Size
: 126.61kb
User
:
summer
[
Other resource
]
yufafenxikejianzongshu
DL : 0
每种程序设计语言都有描述程序语法结构的规则。例如,Pascal程序由程序块(又叫分程序)构成,程序块由语句组成,语句由表达式组成,表达式由记号组成等等。这些规则可以用上下文无关文法或BNF范式(Backus-Naur Form)描述。 编译器常用的文法分析方法有自上而下和自下而上两种。正如它们的名字所示,自上而下分析器建立分析树是从根结点到叶结点,而自下而上分析器恰好反过来。它们的共同点是从左向右地扫描输入,每次一个符号。 最有效的自上而下和自下而上的分析法都只能处理上下文无关文法的子类。这些子类足以描述程序设计语言的大多数语法结构,其中LL文法的分析器通常用手工实现,而LR文法的分析器通常利用自动工具构造。 本章致力于编译器采用的典型语法分析方法。我们首先提出有关上下文无关文法的基本概念,然后介绍适合于手工实现的预测分析技术,最后给出自动工具用的LR分析算法。由于程序员准备的代码经常会出现一些语法错误,因此我们还扩展所介绍的分析方法,使之能从常见的错误中恢复过来。 3.1 上下文无关文法 ..... 3.4 自下而上分析 3.6 二义文法的应用-each programming language has described procedures grammatical structure of rules. For example, Pascal procedures block (also known as sub-procedures), with procedures block composed by the statement, statement by the composition of expression, etc. from the component mark. These rules can be used context-free grammar or paradigm BNF (Backus - Naur Form) Description. Compiler grammar analysis of the commonly used methods are both top-down and bottom-up. As their name implies, top-down analysis of the establishment of analyzers from the root node of the tree to the leaf nodes, and the bottom-up analyzer exactly the contrary. The common denominator is to scan from left to right input, each a symbol. The most effective top-down and bottom-up analysis can only deal with
Date
: 2008-10-13
Size
: 131.27kb
User
:
李爱春
[
ELanguage
]
pl0_
DL : 0
“编译原理与技术”的上机实验要求你对PL/0语言及其编译器进行扩充和修改。每个扩充或修改方式可得到不同的分数,满分为100分。 完成上机作业后,必须提交下列文档: (1) 修改后的PL/0语言文本。包含词法分析(正规式),语法分析(BNF)。 (2) 有关修改后的PL/0编译/解释器的说明。详细说明你的编译器是如何编译新的PL/0语言程序的。指出你的程序中最精彩的部分,以及你为什么这样做,你是如何控制和恢复语义错误的。 (3) 给出你所改动后的编译器源程序清单,并标记出你所修改的部分。比较你的编译器和原来的编译器之间的差别。 (4) 说明你的编译器中可能存在的错误。
Date
: 2008-10-13
Size
: 60.84kb
User
:
wanya
[
ELanguage
]
Java形式文法
DL : 0
Java形式文法-BNF.是设计形式文法的好范例。-Java form grammar-BNF. Form design is a good example of grammar.
Date
: 2008-10-13
Size
: 5.3kb
User
:
简Θ单
[
ELanguage
]
C_minus语言说明
DL : 0
C_minus语言的BNF语法定义 程序由声明的列表(或序列)组成,声明可以是函数或变量声明,顺序是任意的。至少必须有一个声明。接下来是语义限制(这些在C中不会出现)。所有的变量和函数在使用前必须声明(这避免了向后backpatching引用)。程序中最后的声明必须是一个函数声明,名字为main。注意,C-缺乏原型,因此声明和定义之间没有区别(像C一样)。-C_minus BNF language syntax definition of procedures from the list of statement (or sequence), with a statement can be variable or function statement, the order is arbitrary. There must be at least one statement. Next is the semantic constraints (these will not arise C). All the variables and functions to be used in the statement (which avoids the use Backpatching backwards). Procedures must be the last statement is a function declaration, the name of the main. Attention C - lack of a prototype, and the definition of a statement is no difference between (the same as C).
Date
: 2008-10-13
Size
: 6.14kb
User
:
林丰
[
ELanguage
]
Java形式文法
DL : 0
Java形式文法-BNF.是设计形式文法的好范例。-Java form grammar-BNF. Form design is a good example of grammar.
Date
: 2025-07-15
Size
: 5kb
User
:
简Θ单
[
ELanguage
]
C_minus语言说明
DL : 0
C_minus语言的BNF语法定义 程序由声明的列表(或序列)组成,声明可以是函数或变量声明,顺序是任意的。至少必须有一个声明。接下来是语义限制(这些在C中不会出现)。所有的变量和函数在使用前必须声明(这避免了向后backpatching引用)。程序中最后的声明必须是一个函数声明,名字为main。注意,C-缺乏原型,因此声明和定义之间没有区别(像C一样)。-C_minus BNF language syntax definition of procedures from the list of statement (or sequence), with a statement can be variable or function statement, the order is arbitrary. There must be at least one statement. Next is the semantic constraints (these will not arise C). All the variables and functions to be used in the statement (which avoids the use Backpatching backwards). Procedures must be the last statement is a function declaration, the name of the main. Attention C- lack of a prototype, and the definition of a statement is no difference between (the same as C).
Date
: 2025-07-15
Size
: 6kb
User
:
林丰
[
ELanguage
]
bnf
DL : 0
BNF 递归下降语法分析器 文法: E->E+T|T T->T*F|F F->(E)|i-BNF recursive grammar decline parser : E-
Date
: 2025-07-15
Size
: 3kb
User
:
keke
[
ELanguage
]
BNF_gram
DL : 0
分析器BNF文法,,我们学校的 点start-run it.-analyzer BNF grammar, and the point of our school and start-run it.
Date
: 2025-07-15
Size
: 85kb
User
:
赵宁
[
ELanguage
]
C0Compiler
DL : 0
自己写的一个C子集的编译程序,包括源码和说明文件,以及文法的扩充BNF表达式-himself wrote a subset of the C compiler, including source code and documentation, and the expansion of BNF grammar expression
Date
: 2025-07-15
Size
: 354kb
User
:
summer
[
Software Engineering
]
yufafenxikejianzongshu
DL : 0
每种程序设计语言都有描述程序语法结构的规则。例如,Pascal程序由程序块(又叫分程序)构成,程序块由语句组成,语句由表达式组成,表达式由记号组成等等。这些规则可以用上下文无关文法或BNF范式(Backus-Naur Form)描述。 编译器常用的文法分析方法有自上而下和自下而上两种。正如它们的名字所示,自上而下分析器建立分析树是从根结点到叶结点,而自下而上分析器恰好反过来。它们的共同点是从左向右地扫描输入,每次一个符号。 最有效的自上而下和自下而上的分析法都只能处理上下文无关文法的子类。这些子类足以描述程序设计语言的大多数语法结构,其中LL文法的分析器通常用手工实现,而LR文法的分析器通常利用自动工具构造。 本章致力于编译器采用的典型语法分析方法。我们首先提出有关上下文无关文法的基本概念,然后介绍适合于手工实现的预测分析技术,最后给出自动工具用的LR分析算法。由于程序员准备的代码经常会出现一些语法错误,因此我们还扩展所介绍的分析方法,使之能从常见的错误中恢复过来。 3.1 上下文无关文法 ..... 3.4 自下而上分析 3.6 二义文法的应用-each programming language has described procedures grammatical structure of rules. For example, Pascal procedures block (also known as sub-procedures), with procedures block composed by the statement, statement by the composition of expression, etc. from the component mark. These rules can be used context-free grammar or paradigm BNF (Backus- Naur Form) Description. Compiler grammar analysis of the commonly used methods are both top-down and bottom-up. As their name implies, top-down analysis of the establishment of analyzers from the root node of the tree to the leaf nodes, and the bottom-up analyzer exactly the contrary. The common denominator is to scan from left to right input, each a symbol. The most effective top-down and bottom-up analysis can only deal with
Date
: 2025-07-15
Size
: 131kb
User
:
李爱春
[
ELanguage
]
pl0_
DL : 0
“编译原理与技术”的上机实验要求你对PL/0语言及其编译器进行扩充和修改。每个扩充或修改方式可得到不同的分数,满分为100分。 完成上机作业后,必须提交下列文档: (1) 修改后的PL/0语言文本。包含词法分析(正规式),语法分析(BNF)。 (2) 有关修改后的PL/0编译/解释器的说明。详细说明你的编译器是如何编译新的PL/0语言程序的。指出你的程序中最精彩的部分,以及你为什么这样做,你是如何控制和恢复语义错误的。 (3) 给出你所改动后的编译器源程序清单,并标记出你所修改的部分。比较你的编译器和原来的编译器之间的差别。 (4) 说明你的编译器中可能存在的错误。
Date
: 2025-07-15
Size
: 61kb
User
:
wanya
[
SQL Server
]
sql-92-bnf.tar
DL : 0
sql 92的 bnf范式,学习sql 92标准的最权威参考-sql 92 of bnf paradigm, learning sql 92 standard of the most authoritative reference
Date
: 2025-07-15
Size
: 57kb
User
:
yingjie
[
SQL Server
]
sql-99-bnf.tar
DL : 0
sql 99的 bnf范式,学习sql 99标准的最权威参考。-sql 99 of bnf paradigm, learning sql 99 standard of the most authoritative reference.
Date
: 2025-07-15
Size
: 108kb
User
:
yingjie
[
SQL Server
]
sql-2003-bnf.tar
DL : 0
sql 2003的 bnf范式,学习sql 2003标准的最权威参考-bnf paradigm of sql 2003, sql 2003 standard to study the most authoritative reference
Date
: 2025-07-15
Size
: 123kb
User
:
yingjie
[
ELanguage
]
pl0xiugaihoudeyuanmahebaogao
DL : 0
pl0修改后的源程序和报告 (1) 修改后的PL/0语言文本。包含词法分析(正规式),语法分析(BNF)。 (2) 有关修改后的PL/0编译/解释器的说明。详细说明你的编译器是如何编译新的PL/0语言程序的。指出你的程序中最精彩的部分,以及你为什么这样做,你是如何控制和恢复语义错误的。 (3) 给出你所改动后的编译器源程序清单,并标记出你所修改的部分。比较你的编译器和原来的编译器之间的差别。 (4) 说明你的编译器中可能存在的错误。 (5) 总结经验与教训,如果重做一遍,你会有哪些新的改进? -err
Date
: 2025-07-15
Size
: 575kb
User
:
盼盼
[
Other
]
PL-0
DL : 0
PL/0语言的BNF描述(扩充的巴克斯范式表示法)
Date
: 2025-07-15
Size
: 7kb
User
:
lin shasha
[
Other
]
BNF
DL : 0
用BNF描述一个小的语言,并实现其语法分析器(含词法分析部分)。-BNF description of a small language parser (including lexical analysis).
Date
: 2025-07-15
Size
: 2kb
User
:
«
1
2
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.