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
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
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"
- Mohamed ABDELNABI
- David KACHKOCH
- Sylvain SENE
There is a CC-BY-SA's license. It's an open source project.