Git Product home page Git Product logo

runzhong_machine_compiler's Introduction

RunzhongMachineCompiler

Runzhong Machine, the DEEP DARK OLD MAGIC inspired from my old friend Runzhong Li.

Author Info

  • Jiawei Liu@ganler
    • Project Manager;
    • CXX backend;
    • Algorithm(Both in compiler design and performance optimization);
  • Junyao Li@taltalite
    • React Frontend;
  • Zizheng Zhong@zzznb
    • Algorithm.

Key Feather

  • High-quality Modern C++ Code.
    • I made heavy use of generic programming technics. You can easily use user-defined container and string if you like.
    • I made heavy use of std::string_view to avoid any kinds of unnecessary evil string copies(Well, that's why it has better performance).
    • Zero-Dependency(C++): All C++ codes use STL only, including multi-threading. (Well, I am a modern C++ programmer who care everything about performance and beautiful code😎)
  • Beautiful GUI(As you can see below).
  • Fork&Join based lexcial analysis(To make the lexcial analysis procedure faster🚀)

Demo

Lexcial GUI

Syntax GUI

Build CXX

As I am a modern C++ programmer, you may need to upgrade your compiler to support C++17.

std::string_view will boost the performance of your application!

Build React

Make sure that node.js is installed on your computer.

mv parse_tree ../parse_tree
mv lexcial ../lexcial

npx create-react-app parse_tree # long time to install react components
npx create-react-app lexcial

cp -r ../parse_tree/ parse_tree/
cp -r ../lexcial/ lexcial/

cd lexcial
npm install typescript
unset HOST
npm start # then you gonna see them.

cd ../parse_tree
npm install d3
npm install antd
unset HOST
npm start # then you gonna see a parse-tree. Wonderful!

Lexcial & Syntax Analysis

Brief Intro to Our Design

Note that our procedure of lexcial analysis is parallelized(I used the fork&join model to analyze each line. But of course, you need to deal with multi-line comment issue first(give it a single pass!)).

TODO

  • Upload our report(More tech details)

runzhong_machine_compiler's People

Contributors

ganler avatar dependabot[bot] avatar

Stargazers

Yohan Wal avatar  avatar Jiageng avatar Lucson avatar Yuxiang Wei avatar  avatar  avatar

Watchers

James Cloos avatar  avatar Yohan Wal 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.