搜索资源列表
UnLinker编译原理实验
- 编译原理实验 为UnLinker.java文件中的UnLinker类实现成员函数String clean(String text). 函数clean的功能是屏蔽字符串参数text中的网页链接信息,并返回屏蔽后的结果;如果无需屏蔽,则返回原来的字符串. 每个网页链接从左至右依次分成前缀,域名和后缀三部分-Compilation Principle experiment UnLinker.java file UnLinker class implements member functions Str
word
- 使用C语言开发的一个简单的词法分析器。矩阵。最后生成token串。-Developed using C language with a simple lexical analyzer. Matrix. Last generated token string.
lll
- 实现了LL(1)文法分析,包括构造First、Follow集、预测分析表,并可检查输入串是否被接受。-The implementation of LL(1) analysis, including constructing the First, Follow set, Predictive Parsing Table. It can also test a string whether it is accepeted.
根据某一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
cifafenxi
- 词法分析 可以接入所选文件而不需要打字符串-Lexical analysis can access selected files without the need to play a string
wordanalysiis
- 一个简单的词法分析器,能够识别基本的单词符号串-A simple lexical analyzer can identify the basic symbol string of words
LR1
- 构造LR(1)分析程序,利用它进行语法分析,判断给出的符号串是否为该文法识别的句子,了解LR(K)分析方法是严格的从左向右扫描,和自底向上的语法分析方法。-Construct LR (1) analytical procedures, and use it to parse sentences of whether the judgment given string of symbols for grammar recognition LR (K) analysis method is stri
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
CS2---Assignment1
- an advance data type to represent a student at PMU. Name this class PMUStudent". The following should be the members of this class: 1- string name //this member will hold the name of the student 2- string major //this member will tell the major o
na4csv
- 用来吧指定的文件中特定的字符串提取并放到csv文件中。实时打印结果到屏幕-Used to it a specific string in the specified file extracted and placed into a csv file. Real-time print the results to the screen
HelloWorld
- A very complicated routine to write on screen a humungous character string
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
length
- 將字串轉成二維陣列 亦可將二維陣列轉為字串-String, turn into a two-dimensional array, also a two-dimensional array to a string
VCPP
- 实现对C语言的源程序的词法分析的词法分析器,词法分析器的功能就是读入字符串形式的源程序,识别出具有独立意义的最小语法单位,即单词,并对识别出的单词进行相应的产生属性字处理。-Lexical analyzer lexical analysis of the C language source code, the lexical analyzer function is to read into a string in the form of source code to identify the
2
- a31任意输入一行字符串判断这个字符串的情况程序简单易懂-a31 arbitrary input line of string to determine the string program easy to understand
non-recursive
- 建立文法及其LL(1)分析表表示的数据结构,设计并实现相应的预测分析器,对源程序经词法分析后生成的二元式代码流进行预测分析,如果输入串是文法定义的句子则输出“是”,否则输出“否”。-提示:" s"以后的内容没有被翻译,单次翻译最多1000字 努力翻译中,请稍后… A grammar and LL (1) of the table that the data structure, design and implement the corresponding prediction
code
- 对于任意给定的输入串(词法记号流)进行语法分析,递归下降方法和非递归预测分析方法可以任选其一来实现。-For any given input string (lexical token stream) parsing, recursive descent methods and non-recursive predictive analysis method can either be achieved.
string
- basics about string.how to perform operations on string. these program are very simple anyone can easily understand-basics about string.how to perform operations on string. these program are very simple anyone can easily understand
String-length
- Calculate the string length
