# SimpleJInterpreterV2 **Repository Path**: jeavenwong/SimpleJInterpreterV2 ## Basic Information - **Project Name**: SimpleJInterpreterV2 - **Description**: 用 ANTLR 实现的四则运算计算器的编译器,可以解释执行,也可以生成简单的指令基于栈的虚拟机来执行。 - **Primary Language**: Java - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2020-05-13 - **Last Updated**: 2022-07-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SimpleJInterpreterV2 #### 介绍 用 ANTLR 实现的四则运算计算器的编译器,可以解释执行,也可以生成简单的指令基于栈的虚拟机来执行。 #### 环境 - JDK: Zulu OpenJDK 1.8 - IDE: Intellij IDEA - OS: Windows 10 #### 实现细节 - 解释执行:使用 ANTLR + Vistor遍历模式来遍历 Parse Tree 解释执行。 - 编译执行:使用 ANTLR + Listener遍历模式来遍历 Parse Tree 生成指定的指令,然后由 Stack-based VM 来执行。 #### 参考教程 - [ANTLR简明教程](https://www.cntofu.com/book/115/introduction.md)