Giter Site home page Giter Site logo

intermediate-language-generator's Introduction

基于语法制导翻译**产生中间语言

文件说明

Main.java为程序运行入口文件,负责产生图形化窗口

Panel1.java负责界面的具体设计

ExpressionTrans.java负责逆波兰式的产生,以及三元式和四元式的生成

TreeNode.java中声明了构建抽象语法树的结点

AbstractGrammarTreeGenerate.java负责抽象语法树的生成

运行说明

运行Main.java后,会产生一个窗口: image

输入表达式后会输出逆波兰式、三元式、四元式、抽象语法树及其先序、中序、后序遍历的结果: image

代码也有判错功能: image

intermediate-language-generator's People

Contributors

charlie020 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.