-
用LL(1)法对布尔表达式的语法分析
用LL(1)法对布尔表达式的语法分析- (1) the law analyzes with LL to the Boolean expression grammar
- 2022-01-21 05:59:58下载
- 积分: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 compiler, a simple C language compiler.
C编译器 ,简单的一个C语言的编译器。-C compiler, a simple C language compiler.
- 2022-06-28 11:52:22下载
- 积分:1
-
翻译原则程序,如果有错误请
编译原理程序,如有错误请谅解。- Translation principle procedure, if has the mistake please to
forgive.
- 2022-07-15 06:12:35下载
- 积分:1
-
语法分析器,实现pascal语言的分析,对源程序从左到右进行扫描,对组成源程序的字符串拼接成为单词;并把其并把其转换成属性字输出,并管理符号表,处理词法错误。...
语法分析器,实现pascal语言的分析,对源程序从左到右进行扫描,对组成源程序的字符串拼接成为单词;并把其并把其转换成属性字输出,并管理符号表,处理词法错误。-Parser to realize pascal language analysis, source code is scanned from left to right, to the composition of a string of source code splicing into words and its properties and to convert it into a word output, and manage the symbol table, dealing with lexical错误.
- 2022-06-30 17:07:52下载
- 积分:1
-
pl0编译器
pl0编译器-pl0 compiler
- 2022-03-13 01:14:44下载
- 积分:1
-
分词程序的源代码
分词程序的源代码-Word program"s source code
- 2022-01-22 12:08:00下载
- 积分:1
-
该文件主要是一个编译原理函数语言绘图器,可以利用起来翻译图象代码...
该文件主要是一个编译原理函数语言绘图器,可以利用起来翻译图象代码-the document is mainly a function of compiler theory language mapping device that can use up images code translation
- 2022-07-09 15:32:52下载
- 积分:1
-
从一个开源软件中摘取的正则表达式模块,是学习正则表达式、编译原理的好东西。...
从一个开源软件中摘取的正则表达式模块,是学习正则表达式、编译原理的好东西。-From an open-source software in the removal of the regular expression module, is to learn regular expressions, compile the principle of good things.
- 2022-03-12 15:11:37下载
- 积分:1
-
语言形态分析仪本程序是以词法分析器为例
c语言的词法分析器 该程序是一个用c语言编写的词法分析器 -C language morphology analyzer this procedure is the morphology analyzer which compiles with the c language
- 2022-05-20 02:26:21下载
- 积分:1