Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 380 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 380 Bytes

Gagos language

REQUISITOS:

  • Lex
  • Yacc
  • Ruby

RODAR SCRIPT:

$ chmod +x run_translator.sh
$ ./run_translator.sh example.gago

OU RODAR CADA ETAPA:

$ flex translator.l
$ bison -d translator.y
$ gcc lex.yy.c translator.tab.c -o translator -lfl
$ ./translator < example.gago
$ ./translator example.gago > translated_code.rb
$ ruby translated_code.rb