Giter VIP home page Giter VIP logo

25th-engineer / compile_experiment_lr_1 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.7 MB

Hefei University of Technology Principle of Compiler experiment: LR (1) grammar analysis. The core code implemented by Scala and the GUI by Java. -- 合肥工业大学《编译原理》实验:LR(1)文法分析。核心代码是Scala;Java实现GUI。

Home Page: https://blog.csdn.net/u25th_engineer/article/details/102789976

Java 2.20% Scala 97.80%
scala java principle-of-compiler grammar-analysis computer-language gui hfut

compile_experiment_lr_1's Introduction

Compile_Experiment_LR1

合肥工业大学编译原理实验LR(1)文法分析,Scala实现;Java实现GUI。



开发环境:

硬件:

Dell G3 3579;

软件:

OS:Ubuntu 16.04.06;
IDE:InterLRiJ IDEA Ultimate Edition(2019.1.3);
编程语言:Scala、Java。

完成情况:

代码行数:

①纯粹自己写的、不含GUI代码、不含注释、不含空行:736;
②含参考而来的GUI代码与各类注释:1474;

数据结构与算法设计:

①核心代码部分,均为自己参照书上的算法,用极为朴素的方法实现(Scala,736);
②GUI的编写参考“菊花侠”大佬的手笔,Java封装实现界面;
③界面还有待改进的地方,如:表格2可以加个滚动条。

程序截图:

图 1 开始界面
开始界面
图 2 选择文件
选择文件
图 3 分析界面
分析界面
图 4 显示初始文法
显示初始文法
图 5 分析完成(输入表达死为“i+i*i”)
分析完成(输入表达死为“i+i*i”)
图 6 分析完成(输入表达死为“i+i*i”,手动把单元格拉长了些)
分析完成(输入表达死为“i+i*i”,手动把单元格拉长了些

compile_experiment_lr_1's People

Contributors

25th-engineer 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.