Giter VIP home page Giter VIP logo

sysy-compiler's Introduction

sysY-compiler

系统环境:Ubuntu 18.04

sysY-Lexer测试方法:

//1.产生lex.yy.c
## lex lexer.l

//2.编译lex.yy.c
## gcc lex.yy.c

//3.运行测试程序 testing中是一段用于测试的sysY代码
## ./a.out <testing

Lauguage Standard

Compared to C99 Standard, we cut off:

  • wide char string literal and C++11 unicode string literals
  • unnecessary keywords somehow like volatile, register, restrict and auto
  • GCC extension like __attribute__ and builtin types and functions like SIMD __mm256d
  • VLA, it's a C99 standard (removed in C++ standard)

Roadmaps

  • Basic numeric type support
  • Linear control flow
  • Pointers
  • Variable shadowing
  • Non-Linear control flow like for, if
  • Arrays, struct, typedef
  • Preprocessor macros
  • Better front end diagnose output (may need hand written parser)

sysy-compiler's People

Contributors

floatshadow avatar mental-gly avatar kuroo-fissh 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.