Code Monkey home page Code Monkey logo

ll1-language-l-to-c-to-asm's Introduction

LL(1) language

Implementation in C of a new language L that's have the supports of the Booleans operands MODULO '%' and GREATER THAN '>'.

For more details, see the links bellows:

https://en.wikipedia.org/wiki/Language

https://en.wikipedia.org/wiki/Group_theory

https://en.wikipedia.org/wiki/MIPS_architecture

https://en.wikipedia.org/wiki/Assembly_language

https://en.wikipedia.org/wiki/Formal_language

https://en.m.wikipedia.org/wiki/LL_grammar

Documentation

This implementation is done with C11.

You can check the LL(1) specification in these files:

  • Grammar : Grammaire LL(1) perso
  • Firsts : premier.csv
  • Nexts: suivant.csv
  • LL(1) table: Table LL(1) ok.csv

Installation

Do on a terminal prompt:

  • To compile:
$ make all
  • To archive in tar.gz:
$ make tape
  • To archive in ZIP:
$ make ZIP
  • lexically the source code file:
$ ./test_yylex -s "path-to-the-file-of-the-source-code.l"
$ ./test_yylex -s "path-to-the-file-of-the-source-code.l"
$ make clean
  • To check and compile
$ make clean
  • To check and compile
$ ./test_yylex -l "path-to-the-file-of-the-source-code.l"
  • To check and compile lexically and syntactically the source code file:
$ ./test_yylex -s "path-to-the-file-of-the-source-code.l"
  • To check and compile lexically and abstractly the source code file:
$ ./test_yylex -a "path-to-the-file-of-the-source-code.l"
  • To check and compile lexically, abstractly and semantically the source code file :
$ ./test_yylex -t "path-to-the-file-of-the-source-code.l"
  • To check and compile lexically, abstractly and semantically the source code file :
$ ./test_yylex -t "path-to-the-file-of-the-source-code.l"
  • To check and compile lexically, abstractly, semantically and optimize the source code file to MIPS :
$ ./test_yylex -t "path-to-the-file-of-the-source-code.l"

Authors

  • Mohamed ABDELNABI
  • David KACHKOCH
  • Sylvain SENE

License

There is a CC-BY-SA's license. It's an open source project.

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.