Description: Full support for extended regular expressions (those with intersection and complement);
Support for some kinds of cycles in grammar;
DFA-based operation;
Unicode support;
C++ only, requires a modern compiler;
Lexical analyzers can be configured to get symbols from any input class (built-in support for std::istream, std::wistream and FILE *);
Designed to work with Whale, but can work standalone or interface to other parsers.
Platform: |
Size: 84150 |
Author: |
Hits:
Description: 一个很一般的编译程序
有词法分析,语法分析,语议分析,和最终生成四元式,但是出错处理较简单,大部分用的C语言,但加了一个四元式类,本人感觉这个程序很垃圾,但可以做个参考!-a very general compilers have lexical analysis, grammar, language proposed analysis, and generate the final-four yuan, But mistakes in handling more simple, with most of the C language, but added a category-four yuan, I feel that this procedure is rubbish, but can make reference! Platform: |
Size: 25763 |
Author:严铁成 |
Hits:
Description: 一个很一般的编译程序有词法分析,语法分析,语议分析,和最终生成四元式,但是出错处理较简单,大部分用的C语言,但加了一个四元式类,本人感觉这个程序很垃圾,但可以做个参考!.. -a very general compilers have lexical analysis, grammar, language proposed analysis, and generate the final-four yuan, But mistakes in handling more simple, with most of the C language, but added a category-four yuan, I feel that this procedure is rubbish, but can make reference! .. Platform: |
Size: 2963 |
Author:liujun |
Hits:
Description: 实现了简单的Simple语言的编辑器,包括词法分析,语法分析,生成四元式,以及生成符号表功能,在符号表中还可以进行查询与删除.-achieve a simple Simple language editors, including lexical analysis, grammar analysis, generation-four yuan, Generation and symbol table functions in the symbol table can also make inquiries with the deletion. Platform: |
Size: 1322546 |
Author:cyt |
Hits:
Description: 语法分析器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)总控程序的构造(查表程序)
(5)符号表的构建与相应管理程序
(6)语义动作程序的加入
环境:Visual Studio.NET 2003-Parser lex and yacc lexical analyzer C language 1.Lex (1) Lex lose into the analytical document (2) Analysis of the formal expression (3) a formal expression of the NFA conversion algorithm (4 ) more than the combined NFA (5) NFA and the determination of the smallest algorithm (6) to return to state and the return of the contents 2.Yacc counterparts (1) Yacc the analytical input file (2) context-free grammar to the corresponding LR (1) grammar pushdown automata Construction (3) LR (1) grammar pushdown automata corresponding to the tectonic analysis table (4) L R (1) General procedures for the control structure (look-up table) (5) Construction of the symbol table with the corresponding management procedures (6) semantic action procedures to the environment : Visual Studio 2003 Platform: |
Size: 41490 |
Author:尤冉 |
Hits:
Description: 词法分析和语法分析的程序,带实验报告- The lexical analysis and the grammar analysis procedure, brings
the test report Platform: |
Size: 50176 |
Author:王聃 |
Hits:
Description: 一个很一般的编译程序
有词法分析,语法分析,语议分析,和最终生成四元式,但是出错处理较简单,大部分用的C语言,但加了一个四元式类,本人感觉这个程序很垃圾,但可以做个参考!-a very general compilers have lexical analysis, grammar, language proposed analysis, and generate the final-four yuan, But mistakes in handling more simple, with most of the C language, but added a category-four yuan, I feel that this procedure is rubbish, but can make reference! Platform: |
Size: 25600 |
Author:严铁成 |
Hits:
Description: 一个很一般的编译程序有词法分析,语法分析,语议分析,和最终生成四元式,但是出错处理较简单,大部分用的C语言,但加了一个四元式类,本人感觉这个程序很垃圾,但可以做个参考!.. -a very general compilers have lexical analysis, grammar, language proposed analysis, and generate the final-four yuan, But mistakes in handling more simple, with most of the C language, but added a category-four yuan, I feel that this procedure is rubbish, but can make reference! .. Platform: |
Size: 3072 |
Author:liujun |
Hits:
Description: 实现了简单的Simple语言的编辑器,包括词法分析,语法分析,生成四元式,以及生成符号表功能,在符号表中还可以进行查询与删除.-achieve a simple Simple language editors, including lexical analysis, grammar analysis, generation-four yuan, Generation and symbol table functions in the symbol table can also make inquiries with the deletion. Platform: |
Size: 1321984 |
Author:cyt |
Hits:
Description: (1) 将此番分析程序设计成独立一遍扫描源程序的结构。词法分析的输出结果采用如下的二元组表示:
(单词种别,单词自身的值)
对表识符,采用下列的二元组表示:
(表识符,指向标识符表项的指针)
单词种别建议采用一个关键字一个整数值、一个算符一个整数值等形式,每个整数值是不重复的,设计中应考虑好编码的方案(要跟语法分析连贯)。
(2) 测试用例:
应该建立至少两个测试用例:一个词法上正确的PL/0源程序和词法上部正确的源程序。
-(1) This analysis program will be designed as an independent source to scan the structure again. Lexical Analysis of the output of the dual use of the following group, said: (the word of other species, the value of their own words) on the table knowledge Fu, using the following binary group, said: (Table numeracy Fu, point identifier table entry pointer) word other species suggested an integer value of a keyword, an operator the form of an integer value, each integer value is not repeated, the design should be considered a good encoding program (with grammar analysis of coherence). (2) test case: It should be the establishment of at least two test cases: a lexical correct PL/0 source and the upper part of the correct morphology of the source. Platform: |
Size: 2048 |
Author:dong |
Hits:
Description: 整个工作过程主要划分成词法分析阶段、语法分析阶段、中间代码生成和目标代码生成四个部分。
第一阶段是把输入的字符串形式的源程序分割成一个个单词符号。
第二阶段是识别由词法分析给出的单词符号序列在结构上是否符合给定的文法规则。
第三阶段中间代码的形式采用便于阅读的四元式。
第四阶段是把经过语法分析或优化后的中间代码作为输入,将其转换成特定机器的机器语言或汇编语言作为输出,这样的转换程序称为代码生成器。-The whole process is divided into the main phase of lexical analysis, grammar analysis phase, intermediate code generation and target code generation four parts. The first stage is the input string form of source code is separated into a word symbols. The second stage is the recognition given by the lexical analysis of the word symbolic sequence in structure with the given grammar rules. The third phase of the form of intermediate code using easy-to-read type Quaternion. After the fourth stage is the syntax analysis or optimized intermediate code as input, convert it into machine language of a particular machine or assembly language as output, such a conversion process known as code generator. Platform: |
Size: 81920 |
Author:刘提 |
Hits:
Description: 制作一个简易的编译器,能够对于给出的符合文法规则程序代码能进行词法分析、语法分析、语义分析并最终生成汇编代码。-The production of a simple compiler, to the grammar rules given in line with the program code can be lexical analysis, syntax analysis, semantic analysis and eventually to generate assembly code. Platform: |
Size: 306176 |
Author:水木一 |
Hits:
Description: 词法语法语义编译器,具有图形界面,可直接导入文件进行词法,语法和语义分析,能够详细列出四元式。-Lexical semantic grammar compiler, with a graphical interface, can be directly imported documents lexical, grammatical and semantic analysis, can be listed in detail quaternion type. Platform: |
Size: 4466688 |
Author:pomelo |
Hits:
Description: 对循环语句: DO〈赋值语句〉WHILE 〈表达式〉
(1) 按给定的题目写出符合简单优先分析方法要求的文法和属性文法描述。
(2) 按给定的题目给出简单优先分析方法的思想及分析表设计。
(3) 按给定的题目给出赋值表达式和控制语句中布尔表达式中间代码序列的结构设计。
(4) 完成相应的词法分析、语法分析和语义分析程序设计。
(5) 编制好分析程序后,设计若干用例,上机测试并通过所设计的分析程序。
-Of the loop: DO < assignment> WHILE < expression> (1) write the title of a given priority in line with the analysis of simple grammar and attributes required to describe the grammar. (2) by a given subject is given a simple analysis of the ideological priorities and analysis of the design. (3) gives the title of a given assignment statement expressions and Boolean expressions to control the middle of the structural design of the code sequence. (4) the completion of the lexical analysis, grammar analysis and semantic analysis of programming. (5) a good analysis of the preparation process, the design of a number of use cases, test the design through the analysis procedure. Platform: |
Size: 36864 |
Author:李伟霞 |
Hits:
Description: 否符合while语句的文法,或者能不能通过文法的开始符号推导出该语句。
(2) 该程序应该包括词法分析器,能对输入的语句进行词法分析,然后再对输出结果。词法分析器应能识别关键字,标示符,常量,操作符等。
(3) 该程序的语法分析器能对输入的语法进行分析,判断输入语句能否满足while循环语句的文法。通过简单优先的方法对语句进行分析,看能否能归约到文法的开始符号。
(4) 该程序的语义分析器就是对分析结果进行输出,要求输出结果是三地址形式的。-Compliance with the statement while the grammar, or to the beginning of grammar symbols can not be derived from the statement. (2) The program should include the lexical analyzer, the statement can be carried out input lexical analysis, and then output the results. Lexical analyzer should be able to identify the keywords, identifiers, constants, operators and so on. (3) parser of the program can analyze the syntax of input to determine whether the input statement to meet the loop while the grammar. Priorities through a simple statement of the method of analysis to see whether it can reduce to the beginning of grammar symbols. (4) the program analyzer is the semantic analysis of the results of the output requirements of the output is three-address form. Platform: |
Size: 60416 |
Author:李伟霞 |
Hits:
Description: 设计各个单词的状态装换图,并为不同的单词设计种别码。将词法分析器设计成供语法分析器调用的子程序。-Each word with the state of the design change figure, and for different words design codes will be kind lexical analyzer design into the parser calls for grammar subroutine Platform: |
Size: 157696 |
Author:宋志伟 |
Hits:
Description: 结合flex词法分析器,读取符合语法规则的文件并输出-Combined with flex lexical analyzer reads the file and comply with the rules of grammar output Platform: |
Size: 4096 |
Author:cz |
Hits:
Description: 用递归下降法编写一个语法分析程序,使之与词法分析器结合,能够根据语言的上下文无关文法,识别输入的单词序列是否文法的句子。-Write a parser using recursive descent method, combined with the lexical analyzer makes it possible depending on the context-free grammar of language, whether the input word sequence recognition grammar of the sentence. Platform: |
Size: 209920 |
Author:xiaowang |
Hits: