-
LL(1)分析 写的语法分析程序,但是不能实现消除左递归,提取公因子...
LL(1)分析 写的语法分析程序,但是不能实现消除左递归,提取公因子-LL (1) analysis of written grammar analysis program, but can not eliminate the left recursion, extracting common factor
- 2022-03-01 22:29:26下载
- 积分:1
-
commonly used programming language syntax and grammar forms to the public. Among...
现将本人搜集常用的程序设计语言的词法和形式文法提供给大家。其中,词法是按LEX格式编辑,形式文法是按YACC格式书写,大家可直接用LEX和YACC工具编译生成各类程序设计语言的分析器。-commonly used programming language syntax and grammar forms to the public. Among them, morphology is based on LEX format editing, grammar form is written by YACC format, we can use the LEX and YACC tools various compiler generation programming language analyzer.
- 2022-02-01 15:12:35下载
- 积分:1
-
dropped by recursive approach to design their own compiler, generating PL/0 Stac...
按递归下降方式设计其编译程序,生成PL/0栈式指令代码,然后解释执行。用(a=1)+2*(b=3+4*5)/2+2*a*b-(a=a+5)/ (c=2) 测试-dropped by recursive approach to design their own compiler, generating PL/0 Stack-code instructions, and then the interpretation and implementation. Using (a = 1) 2* (b = 3 4* 5)/2* a* b- (a = 5 a)/(c = 2) Testing
- 2022-01-25 23:49:31下载
- 积分: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
-
LL(1)文法使用的是确定的自顶向下的分析技术。LL(1)的含义是:第一个L表明自顶向下分析是从左向右扫描输入串,第2个L表明分析过程中将使用最左推导,1表明只...
LL(1)文法使用的是确定的自顶向下的分析技术。LL(1)的含义是:第一个L表明自顶向下分析是从左向右扫描输入串,第2个L表明分析过程中将使用最左推导,1表明只需向右看一个符号便可决定如何推导,即选择哪个产生式(规则)进行推导。-LL (1) grammar using a set top-down analysis techniques. LL (1) the meaning is: the first one L shows a top-down analysis is a scan input string from left to right, the first two L shows the analysis process will be the most left-derivation, one that will be just right to see a sign can decide how to derive, choose what Production (rules) for derivation. LL (1) grammar, followed by calculation of the discriminant needs FIRST sets, FOLLOW sets and SELLECT set, and then determine whether to LL (1) grammar, the last sentence further analysis.
- 2022-02-06 11:59:23下载
- 积分:1
-
多功能运算器
多功能运算器- Multi-purpose logic unit
- 2022-11-06 23:35:03下载
- 积分:1
-
This is a VHDL language used to write the sub
这是一个用VHDL语言写的分频程序,可用得着-This is a VHDL language used to write the sub-frequency procedures, can be useful
- 2022-09-12 23:15:02下载
- 积分:1
-
USB VHDL source code, supports Verilog HDL procedures
USB接口的VHDL源码,支持Verilog HDL程序-USB VHDL source code, supports Verilog HDL procedures
- 2022-02-01 18:09:49下载
- 积分:1
-
一个类似于写字板的程序
一个类似于写字板的程序- Is similar to writes the board the procedure
- 2022-02-11 16:01:21下载
- 积分:1
-
写在C++中的堆栈代码
stack code that wrote in C-stack code that wrote in C++
- 2023-07-03 04:25:02下载
- 积分:1