搜索资源列表
Yu
- 用ANTLR开发的CMM语言语法分析器的文法源文件。使用需ANTLR环境-ANTLR parser source file,grammar
lecial-analysis
- 语法分析器,java代码实现,可以用于特定文法-parser scanner
4SLR
- 编译原理上机—语法分析2 1.目的:熟练掌握自下而上的语法分析方法,并能用C++程序实现。 2. 在已有文法的基础上再加上减法“-”和除法“/”对应的产生式构成最终的文法。从而使得记号流可以处理带括号的加、减、乘、除四则运算。 3. 对于任意给定的输入串(词法记号流)进行语法分析,要求采用SLR分析器来完成。手工构造SLR分析表,利用移进-归约分析算法(P69 图3.12)输出(P70 表3.8)对应的动作部分。如: 输入:id*+id/(id+id)# 输出:移进 按
main
- 使用如下文法: E E+T | T T T*F | F F (E) | id 实现:对于任意给定的输入串(词法记号流)进行语法分析,要求采用LR分析器来完成。手工构造LR分析表,利用移进-归约分析算法输出对应的动作部分。-Use the following syntax:E T E+T |* F F T T |F ( E ID ) |Implementation: for any given input string ( lexical mark flow )
Lex
- 编译原理词法分析器:实现正规文法到NFA、NFA到DFA-Compiler theory lexical analyzer: the formal grammar to the NFA, NFA to DFA
Syntax-analyzer
- 编制递归下降法的语法分析器 通过设计、编制、调试一个典型的语法分析程序,能识别由加+、乘*、括号()、操作数所组成的算术表达式,其文法如下: E→TE E →+TE ∣ε T→FT T →*FT ∣ε F→(E)∣i 1.程序功能(举例) 输入:#i1*(i2+i3)# 输出:SUCCESS 输入:# i1*( i2+i3# 输出:FOUND ERROR -Recursive Descent parser prepared by the des
TLL1h
- 消除左递归的文法来使文法满足进行确定自顶向下分析的条件 一个LL(1)分析法的语法分析器,已通过测试。 -Elimination of left recursive grammar to the grammar to meet the parser to determine the top-down analysis of the conditions of an LL (1) analysis method has been tested.
cifafenxiqi
- 关于词法分析器自己写的一个程序,可能有些不完善的地方,需要配合固定的文法!-about cifafenxiqi code
lexlinuxsource
- 利用linux下的flex生成一个词法分析器,输入文法的正则表达式,加入相关处理函数。由main()调用yylex()入口函数执行词法分析 -Use under linux flex to generate a lexical analyzer input grammar regex adding handler function. Yylex () is called by the main () entry function to perform lexical analysis
GrammerAnalysis
- 用MFC写的语法分析器,可以进行算符优先文法分析-Analysis of operator precedence grammar parser, written with MFC
lexer
- 递归下降分析器的基本构造方法是,对文法的每个非终结符号,都根据其产生式的各个候选式的结构,为其编写一个对应的子程序(或函数),该子程序完成相应的非终结符对应的语法成分的识别和分析任务。因此,递归下降分析器的语法分析子程序的功能是,对某个非终结符,用规则的右部符号串去匹配输入串。分析过程是按文法规则自上而下一级一级的调用有关子程序来完成。本系统采用的就是递归下降分析方法。-The recursive descent parser constructor to each nonterminal gr
cifafenxi
- 编译原理.给出PL/0语言文法规范,编写PL/0语言的词法分析程序。词法分析器.-Compiler theory. PL/0 language grammar specification is given, write PL/0 language lexical analysis program. Lexical analyzer.
non-recursive
- 建立文法及其LL(1)分析表表示的数据结构,设计并实现相应的预测分析器,对源程序经词法分析后生成的二元式代码流进行预测分析,如果输入串是文法定义的句子则输出“是”,否则输出“否”。-提示:" s"以后的内容没有被翻译,单次翻译最多1000字 努力翻译中,请稍后… A grammar and LL (1) of the table that the data structure, design and implement the corresponding prediction
yufafenxiqi
- 语法分析器可选择LL1分析法、算符优先分析法、LR分析法之一,实现如下表达式文法的语法分析器: (1)E→E+T | E-T | T (2)T→T*F | T/F | F (3)F→P^F | P (4)P→(E) | i -Parser can choose the LL1 analysis, the operator first analytic method, one of the LR analysis, the following expression gramma
Compile
- LL1语法分析程序,输入文法表达式能够自动输出预测分析表,词法分析器-LL1 parser input grammar expression can automatically output the prediction analysis table to determine whether the LL1 grammar, you can then enter any of a sentence, and then analyze them gives a detailed analysis
scanner
- 编译原理的词法分析器:正则文法所描述的Pascal 语言子集单词符号的词法分析程序-Compiler theory lexical analyzer: Regular grammar describes a subset of the Pascal language lexical analyzer word symbols
lex-and-syntax-
- 用C语言编写的一个特定文法的词法分析器,内有文法描述PPT和实验指导书,电子科技大学的编译原理实验哦-Using C language of a particular grammar lexical analyzer, there grammar descr iption PPT and guide books, the University of Electronic Science and Technology Compiler Principle Experiment oh
yufa-
- 用C语言完成的语法分析器,功能完全 . 根据某一文法编制调试LR(1)分析程序,以便对任意输入的符号串进行分析。本次实验的目的主要是加深对LR(1)分析法的理解。-With C language parser, fully functional
OperatorPrecedence-Analysis
- C#编写的算符优先文法的分析器,有图形化界面。-Written in C# operator precedence grammar analyzer, a graphical interface.
PredictionAnalysis
- 编译原理内容。LL(1)文法判断,构造语法分析器。-Compiler theory content. LL (1) grammar judgment, constructed parser.