搜索资源列表
LL(1)分析的实现
- 编译中的LL(1)分析方法的实现。对于输入的文法,判断其有效性,用LL(1)方法进行语法分析,并可判别输入的符号串是否为该文法的句型。 -compiler of LL (1) Method of analysis. The importation of the grammar, to judge its effectiveness, with LL (1) methods for syntax analysis, discriminant can input strings of symbols
LL(1)_syntax
- LL(1)语法分析程序 (1)对输入文法,它能判断是否为LL(1)文法,若是,则转(2);否则报错并终止; (2)输入已知文法,由程序自动生成它的LL(1)分析表; (3)对于给定的输入串,应能判断识别该串是否为给定文法的句型。 -LL (1) syntax analysis program (1) on the importation of grammar, it can determine whether to LL (1) grammar, and if so, in
简易语法分析程序LL
- 简易语法分析程序LL(1) (1)对输入文法,它能判断是否为LL(1)文法,若是,则转(2);否则报错并终止; (2)输入已知文法,由程序自动生成它的LL(1)分析表; (3)对于给定的输入串,应能判断识别该串是否为给定文法的句型-simple syntax analysis procedures LL (1) (a) on the importation of grammar. it will determine whether to LL (1) grammar, a
tiger_Lexical
- 针对“虎书”中的tiger语言写的词法分析器 实现了多重注释嵌套、字符串中特殊转义字符和文件结束等处理。 具体请参考Readme.txt-the "tiger" that the tiger was the language lexical analyzer to achieve multiple nested Notes, strings and special escape characters such as an end-of-file processing.
cifafenxiqi(new)
- 词法分析器制作与应用 设计思想 (1)程序主体结构部分: 说明部分 %% 规则部分 %% 辅助程序部分 (2)主体结构的说明 在这里说明部分告诉我们使用的LETTER,DIGIT, IDENT(标识符,通常定义为字母开头的字母数字串)和STR(字符串常量,通常定义为双引号括起来的一串字符)是什么意思.这部分也可以包含一些初始化代码.例如用#include来使用标准的头文件和前向说明(forward ,references).这些代码应该再标记\"%{\"和\"
ll(1)YUFAPANDUAN
- 学编译原理时写的一个语法分析程序 分类:C/C++技术交流 一.[目的要求] ① 对输入文法,由程序自动构造FIRST FOLLOW集 ② 对输入文法,由程序自动生成它的LL(1)分析表; ③ 对于给定的输入串,应能判断识别该串是否为给定文法的句型。 二.[题目分析] 该程序可分为如下几步: (1)读入文法 (2)判断正误 (3)若无误,判断是否为LL(1)文法 (4)若是,构造分析表; (5)由总控算法判断输入符
c
- 实现源程序输入串中注释、续行符的删除,换行符和Tab的替换,大写字母变换,得到预处理后的文本串,为单词识别做好准备。-Realization of input strings in the source notes, continued at the deleted line, newlines, and Tab replacement, capital letters transform, obtained after pretreatment of the text string, read
lex
- 用C语言实现了简单的词法分析功能,用户输入任意字符串,程序输出经分析后的token序列-Using C language to achieve a simple lexical analysis function, the user to enter arbitrary strings, the program output by the analysis of the token sequence
CombinatorParser_Demo
- C++轻量级分析器,Combinator Parser加入了对字符串、词法分析器以及正则表达式。有对于歧义和非歧义的控制。 -C++ lightweight analyzer, Combinator Parser to add strings, lexical analyzer, as well as regular expressions. There is the ambiguity and non-ambiguous control.
MULTILANGUAGE
- This project extracts strings from sourcefiles and collects them for translation
ifelse
- 此程序是对条件语句进行翻译,输入一个条件语句,例如:if B then C1 else C2,先进行词法分析,词法分析的主要任务是:从左到右逐个字符地对源程序进行扫描,产生一个个的单词符号,把作为字符串的源程序改造成为单词符号串的中间程序,词法分析是编译的基础,词法分析的功能是输入源程序,输出单词符号(关键字,标识符,常数,运算符,界符),词法分析完成之后,再进行LL(1)语法分析,语义分析,最后输出四元式(语法分析,属性文法,四元式的相关知识技术描述如下)-This procedure is
tiny-parse
- Syntax of TINY+ An EBNF grammar for TINY+ is as follows (Strings in bold are terminals): 1. program -> declarations stmt-sequence 2. declarations -> decl declarations |² 3. decl -> type-specifi er varlist 4. type-speci
LR
- 1.实验目的 设计一个LR分析器,实现对表达式语言的分析,加深对LR语法分析方法的基本思想的理解,掌握LR分析器设计与实现的基本方法。 2.实验要求 建立文法及其LR分析表表示的数据结构,设计并实现一个LALR(1)的分析器,对源程序经词法分析后生成的二元式代码流进行分析,如果输入串是文法定义的句子则输出“是”,否则输出“否”。 3.实验内容 (1)文法描述及其LALR(1)分析表 描述表达式语言的文法G如下: -1. The experiment was to de
LL1
- 语法分析是编译过程的核心部分。他的任务是在词法分析识别单词符号串的基础上,分析并判断程序的的语法结构是否符合语法规则。语言的语法结构是用上下文无关文法描述的。因此语法分析器的工作的本质上就是按文法的产生式,识别输入符号串是否为一个句子。对于一个文法,当给你一串符号是,如何知道它是不是该文法的一个句子,这是这个课程设计所要解决的一个问题。-Syntax analysis is the core of the compiler process. His task is to identify the
compiler
- 词法分析器即词法分析程序又称为扫描器,其功能在于依次扫视字符串形式源程序中的各个字符,逐个识别出其中的单词,并将其转换为内部编码形式的单词符号串作确为输出-Lexical analyzer that lexical analysis program, also known as scanner, its function is to sweep a string followed by the various characters in the form of the source progra
pascalanalyzer
- this a program that can analyze pascal codes and extracts its tokens, strings, keywords,... it is a good overview of how a compiler works-this is a program that can analyze pascal codes and extracts its tokens, strings, keywords,... it is a
applocalize_2-69
- 帮助翻译成外文的Windows应用程序。您只需输入您的资源(。解像度)文件,翻译项目(菜单,字符串,对话框,消息和对话框控件),然后使用AppLocalize生成一个新的资源文件。-Help translated into foreign languages Windows applications. All you need to enter your resource (. Resolution) file, translation project (menus, strings, dial
cifafenxi
- c—语言的词法分析器。将一个C--语言程序分割成token串的序列。处理C--语言的所有token类型。内附实验报告。-c-language lexical analyzer. A C- language program is divided into token strings of sequence. Treatment C- language of all token types. Containing the test report.
CompilerJava_final
- Pascal lexical analyzer program for demo compiler, which can analysis to classify Identifiers, numbers, names, strings and Booleans,? &plat_id=-Pascal lexical analyzer program for demo compiler, which can analysis to classify Identifiers, numbers, na
word-analsy
- 词法分析器 编译课程设计的第一部分要求 分析串中的用词-Lexical analyzer compiler course design requirements of the first part of strings of words
