搜索资源列表
Lex_Yacc_Parser
- 语法分析器lex和词法分析器yacc的C++语言实现 1.Lex (1)Lex输入文件的解析 (2)正规表达式的解析 (3)一个正规表达式到NFA的转换算法实现 (4)多个NFA的合并 (5)NFA的确定化和最小化算法实现 (6)返回状态与返回内容的对应 2.Yacc (1)Yacc输入文件的解析 (2)上下文无关文法到对应LR(1)文法的下推自动机的构造 (3)LR(1)文法的下推自动机到相应分析表的构造 (4)LR(1)总控程序的构造(查表程
SLRbyHune
- 用SLR分析法实现的语法分析,先用初版.exe生成符号表和token字,然后进行分析,action表程序自动生成-SLR analysis method used to achieve the syntax analysis, use the first edition. Exe Generation symbol table and token characters, Then the analysis, action automatically generated table
4ex
- 实现LR(0)算法,在构造好的action和goto表的情况下实现LR(0)算法的句子分析过程
LEX生成工具生成统计文本
- 利用LEX生成工具生成统计文本文件中字符、单词和行数,并报告统计结果。-LEX generated using statistical tools generated text file of characters, words and action, and a report on results.
yufa
- C语言语法分析器,完成其整个词法语法分析,并将规约动作显示出来-C language parser, to complete its analysis of the lexical grammar, and the Statute of action displayed
C0compiler
- C0文法编译器,生成32位汇编, 没做优化,但是经过了苛刻的测试,masm614已经打包进去了,程序里写了一个脚本解释程序,控制编译器的所有动作,方便使用,已经很完善了,里面有几个测试程序,这是buaa的编译课程设计,师弟师妹用的话别忘请师兄我吃饭啊-C0 grammar compiler, to generate 32-bit compilation, do not optimize, but after a harsh test, masm614 has been packaged into
LRParser
- LRParser.exe 是语法分析器,运行时必须传入syntax文件和对应的action文件,这两个文件必须是对应的,否则运行结果不可预料。运行停止后可以使用 “?” 命令来查询支持哪些 Command。例如用 result 命令来打印分析后的语法树。-LRParser.exe is the parser, run-time files and syntax must be introduced into the corresponding action document, which cor
lr1
- LR 语法分析 ACTION GOTO 表-LR parsing ACTION GOTO table
do_while
- 本代码实现了do-while这个语法结构的语法分析,在语法分析的同时加进相应的语义动作,大家可以仿照这个例子进行其他语法结构的分析-The code to achieve a do-while the grammatical structure of the syntax analysis, syntax analysis, at the same time added to the corresponding semantic action, we can follow the example
TestActionEvent
- Java test button action events.
antlr2.7.5
- ANTLR是什么ANTLR, 语言识别的另一个工具(ANother Tool for Language Recognition),( 前身是 PCCTS)是一种语言工具,它提供了一个框架,可以通过包含Java,C++,或C#动作的语法描述来构造语言识别器,编译器和解释器。 算机语言的解释已经变成了一种非常普遍的工作。传统的计算机语言的编译器和工具(如C或Java)仍旧需要被构造,它们的数量与需要开发的那些成千上万的小语言的识别工具和解释工具相比是相形见拙。程序员为了解析数据格式,图形文
antlr
- ANTLR, 语言识别的另一个工具,它提供了一个框架,可以通过包含Java,C++,或C#动作(action)的语法描述来构造语言识别器,编译器和解析器。 该压缩包包含相关资料(antlr_2_7_5_ChineseVer.pdf/The.Definitive.ANTLR.Reference.pdf)和一个解析HTML文件的例子(html.g)-ANTLR, speech recognition is another tool that provides a framework, you c
SLR(1)
- SLR(1)分析表分析法,给出一个分析表含action和goto表,然后对给出的语句进行语法分析,规约判断!-SLR (1) analysis table analysis, give an analysis table with action and goto tables, and then parsing the statements given in the statute to judge!
4
- 目的:熟练掌握自下而上的语法分析方法,并能用程序实现。 要求: 1. 使用如下文法: E E+T | T T T*F | F F (E) | id 2. 对于任意给定的输入串(词法记号流)进行语法分析,要求采用LR分析器来完成。手工构造LR分析表,利用移进-归约分析算法(P69 图3.12)输出(P70 表3.8)对应的动作部分。如: 输入:id*+id+(id+id)# 输出:移进 按 F->id归约 移进 error
pragmazlxj
- #pragma指令详解 在编写程序的时候,我们经常要用到#pragma指令来设定编译器的状态或者是指示编译器完成一些特定的动作 -Detailed# pragma directive in the preparation of the program, we often use the# pragma compiler directive to set the state or instruct the compiler to perform some specific action
LR-parser
- LR分析器设计 给定说明语句的拓广文法G[S ]如下: (0) S ->S (1) S->v I:T (2) I->I,i (3) I->i (4) T->r 其中v代表终结符var,r代表real。 其识别规范句型活前缀的DFA及LR(0)分析表如下: 输入 状态 ACTION表 GOTO表 v i , : r # S I T 0 S2 1 1 acc 2 S4
Lexical-Analyzer-Parser-compiler
- Parses forwards and backwards. -Scans forwards and backwards. -Get the delimiter that was found. -Get the offset at where the token was started. -Get the current offset of the parser. -Add any number of delimiters. -Support for delimiter
Flex2.5-manual
- FLEX 是词法分析解析器的产生器,需要提供生成规则,动作可以用C语言写-FLEX is a lexical analysis parser generator, the need to provide the generation rule, action can be written using C language
TDII-Ex1-Practica-parcial
- It s an asm file compiled with Proview32 in a 8051 microcontroller, which turns on and off a lamp during 30 seconds from the action of a switch
lex_simple
- 简单的lex编程,详细见英文描述 Running the Lex program 1. Write the Lex specifications as described above in a file, say, prog1.l 2. On moon.cse.yzu.edu.tw, do the following: flex prog1.l (Produces lex.yy.c as the output) gcc lex.yy.c -lfl (Compi