Welcome![Sign In][Sign Up]
Location:
Search - syntax analyzer code in c language

Search list

[OtherLA_Debug

Description: 对c语言的简单语法分析器 文件说明: input.txt内为输入的源程序,包括for,while和if else控制等 output.txt内为输出的二元单词序列 k.txt为关键字表 l.txt为运算符和界符表 i.txt为该输入的源程序的标志符 c.txt为常数表 个别表需要序列号,这时各表的序列号默认为从1开始,每行加1。 使用说明: 在提示符下输入input.txt文件的路径和文件名字, 运行完成后,打开文件output.txt看结果。 -right language syntax analyzer simple document : input.txt for input source, including for, and if else while control output.txt output for the binary sequence k.txt word for the keyword table l.txt for Operators and community tables i.txt the source code for the importation of URI c.txt constant Table Table needs of individual sequences, when the tables are the serial number from a default, plus 1 per trip. Use : In prompt input input.txt document routing and document names, running after output.txt open the file to see the results.
Platform: | Size: 184655 | Author: 好好 | Hits:

[Windows Develop语法分析2

Description: 译原理课程设计题目语法分析器并显示每步的过程-syntax analyzer of translating theory course on designing subject, displaying every process.
Platform: | Size: 5120 | Author: 柳颐 | Hits:

[OtherLA_Debug

Description: 对c语言的简单语法分析器 文件说明: input.txt内为输入的源程序,包括for,while和if else控制等 output.txt内为输出的二元单词序列 k.txt为关键字表 l.txt为运算符和界符表 i.txt为该输入的源程序的标志符 c.txt为常数表 个别表需要序列号,这时各表的序列号默认为从1开始,每行加1。 使用说明: 在提示符下输入input.txt文件的路径和文件名字, 运行完成后,打开文件output.txt看结果。 -right language syntax analyzer simple document : input.txt for input source, including for, and if else while control output.txt output for the binary sequence k.txt word for the keyword table l.txt for Operators and community tables i.txt the source code for the importation of URI c.txt constant Table Table needs of individual sequences, when the tables are the serial number from a default, plus 1 per trip. Use : In prompt input input.txt document routing and document names, running after output.txt open the file to see the results.
Platform: | Size: 184320 | Author: 好好 | Hits:

[ELanguagebianyiqi

Description: 八、 设计SAMPLE语言的语法、语义分析器,输出四元式的中间结果。 检查要求: a] 启动程序后,先输出作者姓名、班级、学号(可用汉语、英语或拼音)。 b] 请求输入测试程序名,键入程序名后自动开始编译。 c] 输出四元式中间代码(样式见样板输出3和4)。 d] 能发现程序的语法错误并输出出错信息。 -Eight, design SAMPLE language grammar, semantic analyzer, the output quaternion type of intermediate results. Inspection requirements: a] start the process, the first output of the author' s name, class, study number [available in Chinese, English or Pinyin]. b] a request to enter the test program name, type the program name after the compiler automatically. c] output type between quaternion code [see sample output pattern 3 and 4]. d] the procedure can be found in a syntax error and output error message.
Platform: | Size: 11264 | Author: lilianjie | Hits:

[VC/MFCcifafenxi

Description: (1)设计符号表 确定符号表的组织方式,一般应包括名字栏和信息栏,其中名字栏作为关键字。要考虑能够存储有关名字的信息,并可以高效地完成如下操作: a.查找:根据给定的名字,在符号表中查找其信息。如果该名字在符号表中不存在,则将其加入到符号表中,否则返回指向该名字的指针; b.删除:从符号表中删除给定名字的表项。 (2)设计词法分析器(也可以使用FLEX生成词法分析器) 设计各单词的状态转换图,并为不同的单词设计种别码。将词法分析器设计成供语法分析器调用的子程序。功能包括: a. 能够拼出语言中的各个单词; b. 将拼出的标识符填入符号表; c. 返回(种别码, 属性值)。 (3)语法分析与中间代码产生器(也可以使用BISON生成语法分析程序)   要求用递归下降分析法、预测分析法或SLR分析法,实现对表达式、各种说明语句、控制语句进行语法分析。   若语法正确,则输出一棵语法树。   若语法错误,要求指出出错性质和出错位置(行号)。出错处理应设计成一个出错处理子程序。-(1) Design symbol table Determine the symbol table of organization, the general should include the name bar and bar, where the name column as a keyword. To be considered capable of storing information about the name, and the following operations can be efficiently completed: a find: Find its information according to the name given in the symbol table. If the name does not exist in the symbol table, then it is added to the symbol table, otherwise it returns a pointer to the name of the pointer Delete: delete the given name from the symbol table entry. (2) design of lexical analyzer (You can also use the FLEX generate the lexical analyzer) The design of each word in the state transition diagram, and a word design for different kind as code. The lexical analyzer is designed for the parser calls the subroutine. Features include: a. to spell out each word in the language b. spell identifier fill in the symbol table c. return (other code, attribute values). (3) syntax analysis an
Platform: | Size: 2048 | Author: 夏帆 | Hits:

CodeBus www.codebus.net