-
目的:通过编写简单的YACC程序熟悉YACC词法分析工具的基本用法,及词法分析器的设计思路。编写包括赋值语句、if语句以及含有加合乘运算的表达式等语法结构的pa...
目的:通过编写简单的YACC程序熟悉YACC词法分析工具的基本用法,及词法分析器的设计思路。编写包括赋值语句、if语句以及含有加合乘运算的表达式等语法结构的pascal子集语言的语法分析器。 功能:程序由两个模块LEX和YACC构成,YACC使用LEX分析后的正规单词输出流-Objective : to prepare a simple procedure with YACC YACC lexical analysis of the basic tools to use, and the lexical analyzer designs. Preparation including assignment if statements containing Addition and multiplication of expressions such as grammatical structure of the pascal subset of the language syntax analyzer. Function : procedures by the two modules constitute LEX and YACC, YACC LEX analysis using the formal word output streams
- 2022-01-26 03:38:11下载
- 积分:1
-
winxpjihuo2.5
winxpjihuo2.5
- 2022-08-22 17:16:42下载
- 积分:1
-
简单的词法分析小例子
简单的词法分析小例子- Simple lexical analysis small example
- 2022-07-28 03:18:57下载
- 积分:1
-
uservice和快速
uService&RAPI-1.01.022-chs(lib-update)uService,源代码,开发工具,设备管理器-uService
- 2022-11-16 07:45:03下载
- 积分:1
-
vc实现的pl0编译器,有读取输出功能
vc实现的pl0编译器,有读取输出功能-read() -write(),这个源码对初学编译原理者有很好的指导作用,我当初学的时候用了3天看懂了源码,也对编译原理更加理解了,毕竟只学理论不看代码是不可能真正理解的,原作者是dwing,我对代码做了一些修改,在此感谢dwing提供的代码-vc achieve pl0 compiler, a reader output- read ()- write (), the source for beginners compiler principles are very good role in guiding, I had time to study the use of three days to read the source code, but also to build a greater understanding of the tenets of all, the theory is not see the code is impossible to truly understand the original author dwing yes, I made some code changes like to thank the code dwing
- 2022-10-10 13:20:03下载
- 积分:1
-
VC realize the program used to compile a small system, in the system to achieve...
该程序用VC实现了一个小型编译系统,在系统中实现了完整的词法扫描,语法分析,予以分析以及模拟代码生成等模块.-VC realize the program used to compile a small system, in the system to achieve a complete lexical scanning, syntax analysis, to analysis and simulation code generation modules.
- 2022-03-09 20:03:49下载
- 积分: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编译器,实现了最基本的编译链接功能,可供学习参考-a mini c compiler
- 2022-03-07 14:44:25下载
- 积分:1
-
所上载的是一个用lex与yacc开发的表达式计算器
所上载的是一个用lex与yacc开发的表达式计算器-The upload is a development with lex and yacc expression calculator
- 2022-06-01 06:25:28下载
- 积分:1
-
编译原理的一个题目:算符优先分析
编译原理的一个题目:算符优先分析-Compilation Principle of a topic: operator priority analysis
- 2023-05-29 10:30:03下载
- 积分:1