yufusuf / vox_language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

metu-ceng444 phase 2 of implementing vox language, supports logical operations, loops, functions and more

details about my implementation:

  • compiles vox source code into riscv assembly
  • lib_vox.c is looking a bit weird because, i started the intention with runtime checks for vectors and integers, will add them later
  • vectors to be added, also floating numbers
  • details about grammar is in vox_grammar.txt

compilation

  • to compile: run compile.py with "file_name" it should generate an assembly file called "asm_vox.s"
  • --show_il argument shows the il generated on console
  • i put 2 sample programs which shows many of the things i have implemented
  • using commands can be helpful, compile_and_run compiles the assembly then runs it

About


Languages

Language:Python 88.1%Language:Assembly 5.4%Language:V 3.4%Language:C 2.0%Language:Verilog 0.9%Language:Coq 0.2%