TinyPy口译员 关于 TinyPy是我作为课程编写的Python小子集的解释器。 安装 该项目使用ANTLR4作为解析器生成器。 要运行解释器,您将需要安装ANTLR4 Python3运行时和ANTLR本身。 请注意,4.5.2运行时存在。 在撰写本文时,pypi具有较旧的版本,因此建议手动安装ANTLR4运行时。 分步说明: 安装 安装ANTLR4 Python3运行时: git clone https://github.com/antlr/antlr4 cd antlr4/runtime/Python3 python3 setup.py install 也可以使用pip,包名称为antlr4-python3-runtime 。 请注意上述错误。 产生解析器 cd tiny-py-interpreter/tinypy antlr4 -visitor parser/TinyPy.g4 安装tinypy: pip3 install . 尝试启动一些测试: python3 setup.py test
2022-12-30 16:13:11 115KB python interpreter parsing compiler
1
金星脚本 欢迎使用动态可注入脚本语言VenusScript的官方GitHub存储库。 请参阅,以进一步了解该语言的工作方式。 版本计划 版 州 描述 0.x 完成 定义 功能 功能参考 标准库 循环容器 分支组件 变量引用 初始动态注射 运行时解释 异步功能 同步功能 同类数组 1.x 当前 面向对象的功能(类,属性,方法,可能是多态等) Java互操作性 清单 字典/地图 异构数组 2.x 计划 功能特点 枚举 调试实用程序和断点 ? 计划 性能提升 自己的字节码编译器和解释器 如何使用 使用Gradle: dependencies { compile 'com.github.bloodshura:venusscript:1.3.0' } 使用Maven: com.github.bloodshura venusscript 1.3.0 对于其他构建系统: 如果您的构建系统支持从Mav
2022-12-29 21:59:11 147KB java language cryptography compiler
1
Compiler A simple-C language compiler Introduction Compile the simple-C program into machine code. 暂将实现分为11个阶段: 词法分析 语法分析 语义动作 语义分析 栈帧布局 翻译 规范化 指令选择 控制流分析 数据流分析 寄存器分配 代码流出. 已完成:词法分析 语法分析 相关内容: Requirements Linux OS GCC Flex sudo apt-get install flex Bison sudo apt-get install bison References "Modern Compiler Implementation in C"
"Modern Compiler Implementation in C"
http://www.cs.pri
2022-12-29 17:51:23 7KB C
1
三大编译原理书:Modern Compiler Implementation in C——虎书——英文版
2022-12-18 03:01:07 10.35MB 虎书
1
基于java的C语言编译器 采用LL(1)文法进行分析,文法是C语言文法的子集,支持报错,以及错误原因 以前只用编译器编译程序,现在学完编译原理这门课以后,通过编译大作业,我对编译器的工作原理有了比较清晰的认识 编译器的工作原理 编译器 (Compiler) 是一种将由一种语言编写的程序转换为另一种编程语言的可执行程序. 现代软件对于编译器的需求远甚从前, 究其原因很简单: 作为中间层, 编译器是构建更高层抽象的基础设施. 编译器意欲将人类可阅读的高阶代码, 翻译为机器能运行的低阶代码. 现代编译器的主要工作流程为: 源代码(source code)→ 预处理器(preprocessor)→ 编译器(compiler)→ 汇编程序(assembler)→ 目标代码(object code)→ 链接器(Linker)→ 可执行文件(executables)1. 其中, 编译器位于一个最重
2022-12-12 17:52:53 209KB Java
1
Wire是一个专门针对Android端的轻量级的protobuf。 Github:https://github.com/square/wire
2022-12-02 14:13:30 273KB wire
1
8cc.go C编译器 8cc.go是用Go语言编写的C编译器。 这是8cc的端口( ) 作者 DQNEO (最初来自上山瑞 ) 用法 输出汇编代码只能在Linux上运行。 如果您使用其他平台,我会建议Docker运行它。 $ docker run -it --rm -v `pwd`:/mnt dqneo/ubuntu-build-essential:go bash root@62b0d706a586:/mnt# echo 'int main(){printf("%s\n","hello world");}' |./gorun|./asrun hello world 它支持哪种语法? 如果别的 对于 二进制运算符(+-/ *&|) 逻辑运算符(&&,||) 三元运算符(?:) 功能声明 函数调用 分配给局部变量 分配给全局变量 primitiv数据类型(int,char,char *,float,double) 复合数据类型(数组,结构,联合,指针) 指针算术 指针取消引用 测试 $ docker run -it --rm -v `pwd`:/mnt dqneo
2022-11-29 14:49:40 69KB c go compiler 8cc
1
cproc:C11编译器(镜像)
2022-11-27 22:41:33 118KB c unix compiler qbe
1
This manual documents how to use the GNU compilers, as well as their features and incom- patibilities, and how to report bugs. It corresponds to the compilers (GCC) version 8.2.0. The internals of the GNU compilers, including how to port them to new targets and some information about how to write front ends for new languages, are documented in a separate manual. See Section “Introduction” in GNU Compiler Collection (GCC) Internals.
2022-11-21 15:54:45 2.47MB GCC
1
microjava-编译器 这是我教员的“编译器”课程的一个项目。 Micro Java 编程语言的编译器。 编译器执行词法、语法和语义分析,然后生成在 Micro Java 虚拟机上执行的代码。 使用了 Java cup 解析器生成器和 jFlex 扫描器。 使用 Eclipse IDE 用 Ja​​va 开发。 计算机工程与信息理论系。 塞尔维亚贝尔格莱德大学电气工程学院。 由 Marin Markić 开发。 没有执照。 2013 年 10 月至 12 月。 微Java语言 语言和此编译器支持以下内容:常量、原始类型、字符串、静态变量、局部变量、数组、函数、具有字段和方法的类、对象、类继承和多态性、动态绑定、运算符和特殊关键字,例如 len、print、阅读等。完整的语言规范可以在 docs 文件夹中找到。 程序源文件扩展名为 mj。 打开微型 java 程序示例的测试文件夹。
2022-11-16 11:18:49 1.49MB Java
1