Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

README.md

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

You can’t perform that action at this time.