搜索资源列表
Grammer_analysis_program
- 北邮 编译原理与技术 课程实验 语法分析程序 用C++实现,包含递归下降分析,LL(1),LR(1),YACC的所有源代码及测试输入文件-Compile didactical building principle and technology experiment grammar analysis in c++ program implementation, include recursively to analysis, LL (1), LR (1), all of the source co
fuzhiyuju
- 赋值语句的翻译程序,采用递归下降法对输入的表达式进行翻译。-Assignment of the translation process, using recursive descent translation of the input expression.
yufafenxi(LR)
- LR方法 编写语法分析程序,实现对算数表达式的语法分析。要求所分析算数表达式由如下的文法产生。 E->E+T|E-T|T T->T*F|T/F|F F->id|(E)|num 实验要求:在对输入表达式进行分析的过程中,输出所采用的产生式。 -LR parser written methods to achieve parsing of arithmetic expressions. Requirements of arithmetic
LR1-parser
- LR1语法分析器,输入文法,可以对句子进行扫描,并判断句子是否可接收-LR1 parser, the input grammar, you can scan the sentence and determine whether it can receive a sentence
TrickTools
- 生成Trick文件工具 1.Open command line 2.input tricktest Usage: TrickTest -f -o -i -f source mpeg2 file to trick -o trick output directory -i output file id -m max coding error, default 0 -b max bitrate for trick generate, default 0 mean no
2
- 设计并实现C语言的语分析程序,实现对算术表达式的语法分析。要求所分析算术表达式由如下的文法G产生: EE+T|E-T|T TT*F|T/F|F Fid|(E)|num 实验要求:在对输入表示进行分析的过程中,输出所采用的产生式。-Design and implement C language, language analysis program to realize the arithmetic expression parsing. Requirements of a
yufafenxiqi
- 语法分析器(C++)源代码+其详细的课程设计报告 输入的文法可以消除左递归并提取公共左因子求出文法的非终结集合——FIRST和FOLLOW集并对输入的算符优先文法,构造算符优先关系表 -Parser (C++) Source code its detailed report on curriculum design input left recursive grammar can be eliminated and the public left factor extract der
根据某一LL(1)文法编制调试预测分析程序
- 根据某一LL(1)文法编制调试预测分析程序,以便对任意输入的符号串进行分析。 本次实验的LL(1)文法为表达式文法: E→E+T | T T→T*F | F F→i | (E) 编写识别表达式文法的合法句子的预测分析程序,对输入的任意符号串,给出分析过程及分析结果。分析过程要求输出步骤、分析栈、剩余输入串和所用产生式。如果该符号串不是表达式文法的合法句子,要给出尽量详细的错误提示。-According to an LL (1) grammar analysis of
analysis
- 编写语法分析程序,实现对算术表达式的语法分析。要求所分析算术表达式由如下的文法产生: E->E+T|E-T|T T->T*F|T/F|F F->id|(E)|num 实验要求:在对输入表达式进行分析的过程中,输出所采用的产生式。 编程实现算法4.2,为给定文法自动构造预测分析表。 编程实现算法4.1,构造LL(1)预测分析程序。-Write a parser, parsing arithmetic expressions. Requirem
Compiler1
- 使用C++编写的编译器,里面 包括了词法分析程序scanner.cpp,无符号数识别程序ucon.cpp,算符优先法语法语义处理程序SF.cpp,SLR1语法语义处理程序SLR1.cpp。比较强大。源程序输入有program.txt,输出包括窗口和compiled.txt-Using C++ to write compiler, which includes lexical analysis program scanner.cpp the number of symbols identifica
CPP
- 输入若干个百分制成绩,输出对应的五分制成绩,输入结束后再分别输出这五个分段的人数。五分制成绩用字母A、B、C、D和E分别表示百分制成绩的100~90、89~80、79~70、69~60、59~0-Input several centesimal system performance, the output of the five grade marking system corresponding to the input end result, after the five output re
cifa
- 是将输入的源程序进行划分,给出基本符号(token)的序列,并掠过注解和空格等分隔符号。基本符号是与输入的语言定义的词法所规定的终结符。 本实验要求学生编制一个读单词过程,从输入的源程序中,识别出各个具有独立意义的单词,即基本保留字、标识符、常数、运算符、分隔符五大类。并依次输出各个单词的内部编码及单词符号自身值。(遇到错误时可显示“Error”,然后跳过错误部分继续进行 -Is the input source program division, and gives the basic
diguifenxi
- 编译原理小程序:用递归下降分析法进行语法分析 对输入的表达式进行自顶向下分析-Compiler theory applet: recursive descent parsing by top-down analysis of the input expression
C-syntactic-analyzer-
- 利用C语言写的一个词法分析器,文件输入输出,且生成关键字表、运算符表、分界符表-A lexical analyzer written in C language, file input and output, and generate keyword table, the operator table delimiter Table
FAScanner
- 单词是高级语言中有实在意义的最小语法单位,而单词又由字符组成。每一种高级语言都定义一组字符集。单词可大致分为五类:基本字,标识符,整常数,运算符,界限符。从输入的源程序字符串中逐个地把这些单词识别出来,并转化成机器比较容易使用的内码形式,这是词法分析器的主要任务。-The word is the smallest grammatical unit actual significance of the high-level language, the word characters. Each d
LL1Parsing
- 语法分析阶段的主要任务是组词成句。每一种语言都有一组文法。按照这些文法,可以由单词组成语法单位,如短语、语句、过程和程序。语法分析就是通过语法分解,确定整个输入串能否构成语法上正确的句子和程序等。-The main task of the parsing stage is a group of words into a sentence. Each language has a set of grammar. These grammars can be composed by the word
suanfu
- 算符优先分析法。根据你输入的文法,程序为你生成算符优先分析表,根据输入语句分析句子。基本功能具备-The operator precedence analysis method. Operator priority analysis table is generated for you based on your input grammar, procedures, analysis of sentences based on the input statement. Basic functio
Huffman-coding-and-decoding
- 在从键盘上输入字符时,只要是键盘上的字符任何字符都能接受,并能统计出输入的一串字符串中各个字符出现的次数,作为构建哈夫曼树时的各叶子结点的权值。 本程序同时具有译码功能 -Character input from the keyboard, as long as any of the characters in the character on the keyboard can be accepted, and the statistics of the number of occurr
compile-duration-function2
- 编译器功能2主要是对输入数据的初步分类。-The compiler function 2 preliminary classification of the input data.
compile-duration-function3
- 编译器功能3主要是对按照语法分析好的输入数据进行解释,列出树装结构。-The compiler features 3 good input data in accordance with the syntax analysis, interpretation, lists the structure of the tree installed.