Skip to content

mfaria724/maclang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MACLang

MACLang is a programming languages developed for course CI4721 - Programing Languages II dictated at Universidad Simón Bolívar (Caracas, Venezuela) in the term April-July 2021, by professor Ricardo Monascal.

Dependencies

  • flex (2.6.4)
  • bison (3.3.2)
  • g++ (8.3.0)

How to use it

WIP: Parsing, Lexing and Symbols Table The project contains a Makefile, thus you just need to run make and i1t will compile the source code. After that, you can execute the program with:

&> ./bin/parser.out METHOD [OPTIONS] FILE

Where FILE represents the path to the file to be parsed and MEHTOD could have the following values:

  • lex: prints just the lexical analysis with all tokens recognized by the lexer if there isn't any errors. In case of errors will print the exact position in the input file where there's an invalid token.
  • parse: For this method, there're 2 available options, which you need to pick at least one in order to work.
    • -c: Prints the represensation with all the asociativities in an explicit way. (All parenthesis).
    • -t: Prints a tree representation of the Absteract Syntax Tree (AST) created by the parser in a redable way. If there're erros, it will print just the first one.
  • symbols: Prints the representation of the symbols table. In case there's redeclarations of variables, it will print those redeclarations.

Developers

  • Amin Arriaga (16-10072)
  • Manuel Faria (15-10463)
  • Orlando Chaparro (12-11499)

About

Lenguaje de Programación de uso general.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •