搜索资源列表
whale-0.3.2-src.zip
- complete support for EBNF notation; Object-oriented parser design; c++ output; Deterministic bottom-up "shift-reduce" parsing; SLR(1), LALR(1) and LR(1) table construction methods; Automatic parse tree creation; Possibility to output pars
whale-0.3.2-src
- complete support for EBNF notation; Object-oriented parser design; c++ output; Deterministic bottom-up "shift-reduce" parsing; SLR(1), LALR(1) and LR(1) table construction methods; Automatic parse tree creation; Possibility to output parse tree in XM
parser
- 采用递归下降分析法实现c0语言的语法分析器,其中中间表示采用抽象语法树的形式。 程序的输入:词法分析阶段的输出文件 程序的输出:存储了抽象语法树相关信息的XML格式的文件 -Decline in the use of recursive analysis method to achieve c0 language parser, which indicated that the use of intermediate abstract syntax tree form. Proced
kecengsheji
- 编译原理课程设计,做了一个:根据LR分析表构造LR分析器!对同学们做编译原理实验很有帮助-Principles of curriculum design compiler, made a: LR analysis table constructed in accordance with LR parser! For students to do experimental helpful compilation Principle
c-compiler
- 编译原理中的语法分析器,基于LL1文法,好东西啊好东西。-compilation Principle in parser, based on the LL1 grammar, good things good things ah.
lexer
- 采用递归下降的语法分析器,语法为简单的fortran语言-Decline in the use of recursive parser, grammar for simple fortran language
grammer
- 简单语法分析器,能自顶向下分析,形成产生式-A simple parser can be top-down analysis, the formation of production
while
- 否符合while语句的文法,或者能不能通过文法的开始符号推导出该语句。 (2) 该程序应该包括词法分析器,能对输入的语句进行词法分析,然后再对输出结果。词法分析器应能识别关键字,标示符,常量,操作符等。 (3) 该程序的语法分析器能对输入的语法进行分析,判断输入语句能否满足while循环语句的文法。通过简单优先的方法对语句进行分析,看能否能归约到文法的开始符号。 (4) 该程序的语义分析器就是对分析结果进行输出,要求输出结果是三地址形式的。-compliance with the s
LR
- 1.实验目的 设计一个LR分析器,实现对表达式语言的分析,加深对LR语法分析方法的基本思想的理解,掌握LR分析器设计与实现的基本方法。 2.实验要求 建立文法及其LR分析表表示的数据结构,设计并实现一个LALR(1)的分析器,对源程序经词法分析后生成的二元式代码流进行分析,如果输入串是文法定义的句子则输出“是”,否则输出“否”。 3.实验内容 (1)文法描述及其LALR(1)分析表 描述表达式语言的文法G如下: -1. The experiment was to de
lex
- 用c++实现的此法分析器,包括正则表达式解析,正则到NFA转换,NFA到DFA转换,和最终的匹配,详见包中README文件-Using c++ parser to achieve this method, including regular expression analysis, while the NFA is converted, NFA to DFA conversion, and end the match, see the package README file
Simple_Language_Lexer
- 这是一个使用了LEX所编写的Simple语言的词法分析器。Simple语言的定义说明请看附件。这个LEX的源代码可以通过parser Generator 2来转化成为h文件跟cpp文件。由于编译这两个文件需要使用到parser Generator 2的c++库,所以就只上传了LEX的源代码,谁感兴趣的可以自己通过parser Generator 2来转化。至于UNIX下面的LEX工具如果想要转化的话需要修改其主程序,另外需要将LEX源代码之中有关c++语言的表达形式修改成为相应的c语言的表现形式
SLR
- this is a code for SLR parser generator written in c
c
- 文本分析器 ,封装一个类cText, 并编写一个软件,它可以完成对任意一个文本文件的字符统计工作。-The text parser, packaging a class cText, and write a software, it can complete any of the characters in a text file statistics.
compiler
- 一份完整的编译原理课程设计.设计了一个词法分析器和一个利用LL(1)算法实现的语法分析器.可以对c-语言编写的程序进行词法分析和语法分析,当出现错误时推断可能的原因.并最终用直观的方式构建起一棵语法分析树.-A complete compilation Principle. Designed a lexical analyzer and a use of LL (1) parser algorithm. can be written in c-language program for lexic
semantic.c
- 一个用c语言实现的简单的语法分析器。可以作为编译原理课的参考。-A simple parser to use c language. You can use it as a reference in compiler theory class.
ll1
- LL1 parser in c language
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
parser1.c
- parser for language PL-0 written in c.
parser2.c
- Enhanced version of PL-0 s parser written in c.
parser2.c
- Enhanced version of PL-0 s parser written in c. includes missing file "error.h".