-
PL/0语言的词法分析,主要是将每个词识别并且读入
PL/0语言的词法分析,主要是将每个词识别并且读入-PL/0 language lexical analysis, mainly to identify each word and read
- 2023-06-10 07:45:03下载
- 积分: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
-
关于c++的词法分析,语法分析,运行成功。对大家希望有帮助...
关于c++的词法分析,语法分析,运行成功。对大家希望有帮助-Accidence analyse and parsing about C++,which run succeed.wish it can help you.
- 2022-07-23 09:40:08下载
- 积分:1
-
- 2022-06-11 18:52:52下载
- 积分:1
-
从形式化的仪式到有限自动机和有限自动机…
从正规式到有限自动机及确定的有限自动机的化简。-from the formal ceremony to Finite Automata and the limited automatic machine simplification.
- 2023-02-19 01:30:04下载
- 积分:1
-
c language program, some of the commonly used algorithms, and from the network t...
c语言程序,一些常用的算法,来源于网络收集,希望大家指教。-c language program, some of the commonly used algorithms, and from the network to collect, we hope the exhibitions.
- 2022-04-01 21:32:37下载
- 积分:1
-
Since the definition of simple types of C language syntax compiler, a statement...
自定义简单语法类C语言编译器,具备识别C语言基本语句功能,并生成四元式-Since the definition of simple types of C language syntax compiler, a statement to identify the basic functions of C language and generate quaternion type
- 2022-04-12 10:05:41下载
- 积分:1
-
使用lex词法分析生成工具。一个字符串的输入…
利用LEX生成工具构造PASCAL词法分析器。输入一个字符串或是数,分析器将判别是否为PASCAL标准标识符、保留字、整数或实数,并同时把当前的输入再次打印出来。-use LEX generation tool is PASCAL lexical analyzer. The importation of a string or number analyzer to determine whether it will PASCAL standard identifier and reserved word, integer or real, and while the current importation of printed again.
- 2023-03-11 12:30:04下载
- 积分:1
-
和利时的PLC编译器powerpro,完全符号IEC 61131
和利时的PLC编译器powerpro,完全符号IEC 61131-3要求-And Lee PLC when the compiler powerpro, full symbols IEC 61131-3 requirements
- 2022-06-21 21:36:21下载
- 积分:1
-
一个简单词法分析器
一个简单词法分析器- A simple morphology analyzer
- 2022-04-08 01:03:00下载
- 积分:1