-
H++编译器: 一个仿Pascal语言的编译器
H++编译器: 一个仿Pascal语言的编译器-H compiler : an imitation of the Pascal language compiler
- 2022-01-25 23:10:09下载
- 积分: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
-
用户输入一个文法,然后再输入,要被分析的字符串,自动进行语法分析,把每一不的分析过程都一一打印出来。直到分析成功或失败。...
用户输入一个文法,然后再输入,要被分析的字符串,自动进行语法分析,把每一不的分析过程都一一打印出来。直到分析成功或失败。-a user input grammar, and then imported to the string were analyzed automatically syntax analysis, the analysis of each process does not have to print out on January 1. Until the analysis of success or failure.
- 2023-07-23 13:45:02下载
- 积分:1
-
简单的词法分析,可以识别关键字错误,识别无效符号等等,通用!...
简单的词法分析,可以识别关键字错误,识别无效符号等等,通用!-Simple lexical analysis to identify the wrong keywords, identify invalid symbols and so on, General!
- 2022-03-03 08:16:24下载
- 积分:1
-
编译原理语法分析器编程
编译原理语法分析器编程- The translation principle grammar analyzer programs
- 2022-05-10 20:22:50下载
- 积分:1
-
这是个简单的语法分析器程序,输入一个表达式,会给出一个分析过程....
这是个简单的语法分析器程序,输入一个表达式,会给出一个分析过程.-This is a simple procedure syntax analyzer, the importation of an expression, is an analytical process.
- 2022-06-14 02:59:54下载
- 积分:1
-
用数据库存储输出的单词符号表、单词表,用LIST,RICHEDIT控件实现单击关联事件。...
用数据库存储输出的单词符号表、单词表,用LIST,RICHEDIT控件实现单击关联事件。-database storage using the word output symbol table, the word table with LIST, click RICHEDIT Controls Association events.
- 2022-03-24 11:52:34下载
- 积分:1
-
C语言编译的语法分析..
C语言编译的语法分析.. -C language compiler syntax analysis ..
- 2022-11-16 16:55:03下载
- 积分:1
-
一个词法分析器还有实验的说明,包不好看的
一个词法分析器还有实验的说明,包不好看的- A morphology analyzer also has experimental the explanation,
the package not not attractively
- 2022-03-21 23:42:46下载
- 积分:1
-
basic c compiler
类似于basic语法的脚本
basic c compiler
类似于basic语法的脚本-basic c compiler is similar to basic grammar of the script
- 2023-01-07 18:35:03下载
- 积分:1