Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 456 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 456 Bytes

Compiler

Released:

  • variables, simple scope
  • functions, print function
  • calculation: addition, subtruction, multiplication, division
  • if-else (simple, ==, !=, <, !<, >, !>)
  • loop(only calculated expression without variables)
  • only integers as operands and arguments for functions

It uses ld and nasm as backend.

Build the compiler:

make

Build and run tests:

make test

Examples of code in *.calc files of tests directory