-
C语言词法分析器 by wpc_LK
这是一个简单的词法分析器,不能避免的存在错误请大家指出予以纠正,谢谢!
示例语句
include<st...
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.
- 2022-01-22 06:15:36下载
- 积分:1
-
Philips lpc2131 the project modules, that should be added to the project ads1.2...
philips的lpc2131工程模块,需添加到ads1.2下的工程模块目录下,不知道有没有人需要-Philips lpc2131 the project modules, that should be added to the project ads1.2 module directory, we do not know whether any of them need
- 2022-09-01 03:45:03下载
- 积分:1
-
very good
基于stc 8052单片机 的步进电机的控制 包扩加速 减速 显示-very good
- 2022-06-19 21:13:59下载
- 积分:1
-
在本编译程序中,源语言为PL/0语言,目标语言为假想栈式计算机的汇编语言.PL/0语言是Pascal语言的一个子集,PL/0的编译程序包括了对PL/0语言源程序...
在本编译程序中,源语言为PL/0语言,目标语言为假想栈式计算机的汇编语言.PL/0语言是Pascal语言的一个子集,PL/0的编译程序包括了对PL/0语言源程序进行分析处理、编译生成类PCODE代码,并在虚拟机上解释运行生成的类PCODE代码的功能。
PL/0语言编译程序采用以语法分析为核心、一遍扫描的编译方法。词法分析和代码生成作为独立的子程序供语法分析程序调用。语法分析的同时,提供了出错报告功能。在源程序没有错误编译通过的情况下,调用类PCODE解释程序解释执行生成的类PCODE代码。
该软件为PL/0语言编译程序,所实现的扩充功能如下:
1.增加单词:保留字 ELSE,FOR,TO, DOWNTO
2.增加运算 +=,-=,++,--
3.不等号# 改为
4.增加条件语句的ELSE子句
5.扩充语句:
①FOR := TO DO
②FOR := DOWNTO DO
其中,语句①的循环变量的步长为1,
语句②的循环变量的步长为-1。
概述
源文件: *.plo
目标文件: *.COD
实现平台:C++ Builder6.0
-the compiler, the source language of PL/0 language, target language of the imaginary stack of computer assembly language. PL/0 language Pascal language is a subset of, PL/0 compilers including the right PL/0 language source analysis, category PCODE compiler code generation and the virtual machine running on to explain the formation PCODE category code functions. PL/0 language compiler
- 2022-07-12 21:52:18下载
- 积分:1
-
词法分析程序。用于词法分析器的制作与应用。
词法分析程序。用于词法分析器的制作与应用。-lexical analysis procedure. Lexical analyzer for the production and application.
- 2022-03-24 12:45:44下载
- 积分:1
-
introduces a serial LDPC encoder and decoder of C forms prepared environment. Ne...
介绍了一种串行LDPC码的编码器和译码器的实现形式
C++环境下编写。有些地方还需完善,请各位帮忙指正。-introduces a serial LDPC encoder and decoder of C forms prepared environment. Need to improve in some areas, please correct me help you.
- 2022-09-08 19:30:02下载
- 积分:1
-
编译原理课程实验,包括词法分析器和语法分析器
编译原理课程实验,包括词法分析器和语法分析器-Compilation Principle experimental courses, including the lexical analyzer and parser
- 2022-04-14 14:39:35下载
- 积分:1
-
TINYC source code
TINYC的源代码-TINYC source code
- 2023-04-16 17:45:04下载
- 积分:1
-
这是LL(1)的一个文法和 分析表 很好的
这是LL(1)的一个文法和 分析表 很好的 - This LL (1) a grammar and the analytical table are very good
- 2022-03-21 16:30:24下载
- 积分:1
-
编译原理实验中的yacc源码,是一个基于小类C语言的yacc程序,有助于学习yacc的编写。...
编译原理实验中的yacc源码,是一个基于小类C语言的yacc程序,有助于学习yacc的编写。-principle experiment compiler generates the source code, is based on a subset of the C language yacc procedures, contribute to the preparation of learning yacc.
- 2022-02-18 16:32:30下载
- 积分:1