Coder Social home page Coder Social logo

compiler's Introduction

#compiler 一个小型编译器的前端部分,包含词法分析文法分析
词法分析使用的是经典的nfa转dfa算法
文法分析使用的是LL(1)文法
使用的是标准C++,没有用到任何外部库,因此在linux和windows下都可进行编译。
运行结果截图:

编译和获取帮助信息:
查看文件内容:
预处理程序:
对程序进行词法分析后的结果:(部分截图)
文法分析的LL(1)各种表信息:



输出格式可能稍微有点乱,已经尽可能调整过的了~

compiler's People

Contributors

newdawnalm avatar

Stargazers

Eason Wang avatar  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.