GithubHelp home page GithubHelp logo

jihaochina / c--compiler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liuchangfreeman/c--compiler

0.0 1.0 0.0 23.65 MB

C--compiler which implements LL(1)\LR(0)\SLR\LR(1) and semantic analysis and MIPS generate

Python 91.65% HTML 6.66% C++ 0.04% C 0.04% Assembly 0.14% C# 1.45%

c--compiler's Introduction

实现了自制C--语言的一遍扫描编译,包括词法分析、LR(1)语法分析、属性文法+中间代码生成、MIPS汇编生成 编译脚本由Python实现,兼容python2.7与3.7,图形界面由WPF实现,使用了IronPython进行脚本执行

支持以下特性:

  1. 一种基本类型int
  2. 赋值表达式,循环/选择/判断/跳出语句
  3. 函数定义与函数调用

未实现:

  1. 浮点数、字符、字符串
  2. 数组
  3. 错误检查

c--compiler's People

Contributors

cclauss avatar liuchangfreeman avatar js-deliver 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.