Giter Site home page Giter Site logo

simple_lr1_syntax_analyzer's Introduction

LR1 syntax analyzer in《Compiler principle》 implemented by c, hope it will be help for learning.

Implementation function: Generating state machine closures and goto tables. Syntax state machine visualization,generated html path: analyzer/demo/view.html

And two simple examples of the implementation based on it:

  1. The positive integer calculator: analyzer/example/calculator
  2. Regular expression: analyzer/example/regular_expression You can just make and run the test.exe file.

《编译原理》中LR1语法分析器的c语言简单实现,方便个人学习理解。 实现功能: 生成状态机闭包和goto表格。 基于g6的文法状态机可视化,生成html路径:analyzer/demo/view.html 以及其基础上实现的两个简单案例: 1.正整数计算器:analyzer/example/calculator 2.正则表达式:analyzer/example/regular_expression 可以直接make运行test.exe文件。

simple_lr1_syntax_analyzer's People

Contributors

mayx19 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.