-
本程序实现了简单的编译器功能,是用PL0语言编写的,思路明确...
本程序实现了简单的编译器功能,是用PL0语言编写的,思路明确-This procedure achieved a simple compiler function is PL0 languages, ideas clearly
- 2022-06-02 01:55:43下载
- 积分:1
-
c―语言的词法分析器。将一个C
c―语言的词法分析器。将一个C--语言程序分割成token串的序列。处理C--语言的所有token类型。程序要做成命令行程序,带两个参数,分别表示输入和输出文件名。
-c-language lexical analyzer. A C language program is separated into token strings of sequences. C-treatment of all token types. Procedures to create command line process, with two parameters, respectively, express the input and output file names.
- 2022-10-07 07:50:04下载
- 积分:1
-
-
- 2022-06-13 21:40:01下载
- 积分: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 java compiler, function very entire
一个java编译器,功能很全的- A java compiler, function very entire
- 2022-02-15 16:52:46下载
- 积分:1
-
VC MFC PL/0语言中的词法分析
vc++ mfc pl/0词法分析-vc mfc pl/0 lexical analysis
- 2022-08-24 13:26:34下载
- 积分:1
-
一个非常完整的编译程序,有每个语法的代码,
一个很全的编译器程序,有各种文法的代码,各种方法都分开写的- A very entire compiler procedure, has each grammar the code,
each method all separates writes
- 2022-12-27 07:00:03下载
- 积分:1
-
一个小型C语言编译器,支持多架构,包括i386,ARM,mips等
一个小型C语言编译器,支持多架构,包括i386,ARM,mips等-A small C language compiler, support multi-architecture, including the i386, ARM, mips, etc.
- 2022-03-07 18:11:19下载
- 积分:1
-
针对java语言的最简词法分析器 输入原文件输出目标文件。txt
针对java语言的最简词法分析器 输入原文件输出目标文件。txt
- 2022-04-21 03:15:00下载
- 积分:1
-
这个程序为C++编写的词法分析器,能够简单的分析一段代码,供学习之用。...
这个程序为C++编写的词法分析器,能够简单的分析一段代码,供学习之用。-This procedure C++ Prepared lexical analyzer that can analyze a simple piece of code for learning purposes.
- 2022-02-02 00:09:32下载
- 积分:1