登录
首页 » Compiler program » C语言词法分析器 by wpc_LK 这是一个简单的词法分析器,不能避免的存在错误请大家指出予以纠正,谢谢! 示例语句 include<st...

C语言词法分析器 by wpc_LK 这是一个简单的词法分析器,不能避免的存在错误请大家指出予以纠正,谢谢! 示例语句 include<st...

于 2022-01-22 发布 文件大小:11.79 kB
0 151
下载积分: 2 下载次数: 1

代码说明:

C语言词法分析器 by wpc_LK 这是一个简单的词法分析器,不能避免的存在错误请大家指出予以纠正,谢谢! 示例语句 include int main{ int a=3,b=4,c if((a+b)==7)c=1 else c=0 return 0 } 输入 exit 退出程序。-C language lexical analyzer by wpc_LK This is a simple lexical analyzer can t avoid that there re some errors here,please correct, thank you! for exzample: include int main{ int a=3,b=4,c if((a+b)==7)c=1 else c=0 return 0 } input exit quit the program.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • NEC upd78f0300的自编程序样例,对78K0系列有都可以调用
    NEC upd78f0300的自编程序样例,对78K0系列有都可以调用-NEC upd78f0300 sample of self-compiled program on the 78K0 series can be called
    2022-03-25 06:03:31下载
    积分:1
  • 大学期间写的一个简单的词法分析器,通过输入符合自定义语法规则的程序,得到分析的二元组...
    大学期间写的一个简单的词法分析器,通过输入符合自定义语法规则的程序,得到分析的二元组-University wrote a simple lexical analyzer through importation from the definition of the rules of grammar procedures, the analysis of binary Group
    2022-01-26 08:14:13下载
    积分:1
  • 在tc上实现的编译原理词法分析程序,直接在当前目录执行即可。...
    在tc上实现的编译原理词法分析程序,直接在当前目录执行即可。-in achieving the compiler theory lexical analysis procedure directly in the current directory to be implemented.
    2022-11-26 14:25:03下载
    积分:1
  • 编译原理的词法分析器,语法分析器(包括递归子程序,算符优先,LR类分析法),语义分析等原理图...
    编译原理的词法分析器,语法分析器(包括递归子程序,算符优先,LR类分析法),语义分析等原理图-compiler tenets of lexical analyzer and parser (including recursive subroutines, operator precedence, LR type analysis), semantic analysis diagram
    2023-01-05 12:35:03下载
    积分:1
  • operator priority experiments can be imported grammar, production operator prior...
    算符优先实验,可以输入文法,生成算符优先表,输入句子,生成移近-规约过程。并且还有实验报告。-operator priority experiments can be imported grammar, production operator priority list, input sentence, approached generation-the Statute of the process. And there are experimental report.
    2022-02-12 01:29:25下载
    积分:1
  • 实现词法分析,并用LR0实现语法分析.这是编译原理的实验时候做的。...
    实现词法分析,并用LR0实现语法分析.这是编译原理的实验时候做的。-It realized the lexical analysis and grammatical analysis function, it was written by C++ language.
    2022-05-12 13:38:11下载
    积分:1
  • 为了实现编译器的实用,可自由编写源代码…
    为了实现的编译程序实用,源程序可采用自由书写格式,即一行内可以书写多个语句,一个语句也可以占领多行书写;标识符的前20个字符有效;整数用2个字节表示;长整数用4个字节表示。这样词法分析程序的主要工作为: (1)从源程序文件中读入字符。 (2)统计行数和列数用于错误单词的定位。 (3)删除空格类字符,包括回车、制表符空格。 (4)按拼写单词,并用(种别,单词)二元式表示。 (5)根据需要是否填写标识符表供以后各阶段使用。 这里采用的编译程序的实现方法是一遍扫描,即从左到右只扫描一次源程序,也就是词法分析作为语法分析的一个子程序。故在编写词法分析程序时,用重复调用词法分析子程序取一单词的方法得到整个源程序的二元式流。 -in order to achieve the compiler practical, available free to write source code format, that his writing can be more than words, a statement can occupy multiple lines written; identifier of 20 characters effective; Integer with two byte; long integer with four byte. This lexical analysis for major work : (1) from source document read into the characters. (2) Statistics and a few mistakes out a few words for positioning. (3) delete the blank type characters, including the carriage return, tab spaces. (4) the spelling words and use (other species, words) dual ceremony. (5) whether the need for completing the table identifier subsequent stages. Here the compilers of th
    2022-01-23 11:14:40下载
    积分:1
  • 开发编译器的有力工具,详细讲述了Lex和Yacc的原理及其实际应用...
    开发编译器的有力工具,详细讲述了Lex和Yacc的原理及其实际应用-The development of a powerful tool for compiler
    2023-04-18 01:25:03下载
    积分:1
  • 这个是计算器的编程源码
    这个是计算器的编程源码- This is the calculator programming source code
    2022-01-26 03:02:33下载
    积分:1
  • 语义分析的功能: 第一,审查每个语法结构的静态语义,即验证语法结构合法的程序是否真正有意义。有时把这个工作称为静态语义分析或静态审查。第二,如果静态语义正确...
    语义分析的功能: 第一,审查每个语法结构的静态语义,即验证语法结构合法的程序是否真正有意义。有时把这个工作称为静态语义分析或静态审查。第二,如果静态语义正确,语义处理则要执行真正的翻译,即,或者将源程序翻译成程序的一种中间表示形式(中间代码),或者将源程序翻译成目标代码。 有报告-Semantic analysis of the functions: First, review each of the grammatical structure of the static semantics, that is, the grammatical structure to verify whether the procedures legally meaningful. Sometimes this is called static or static semantic analysis review. Secondly, if the correct static semantics, semantic processing should be the implementation of a genuine translation, that is, or will be translated into procedures source an intermediate representation (intermediate code), or source code translated into object code. There are reports
    2023-04-30 09:55:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载