Skip to content

piotrek-szczygiel/kutlang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  • pip install rply graphviz
  • Graphviz executable in PATH

If you want to run tests install also colorama for colorful terminal output.

  • pip install colorama

Running REPL

$ python main.py
> 12 + 3.5 * 5.
29.5

Running script

$ python main.py examples/functions.kut
13^2 = 169
6^9 = 10077696
PI = 3.1415926
Hello World!
1337
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987

Running tests

$ python test.py
tests\1_1.kut...........................PASS
tests\1_2.kut...........................PASS
tests\1_3.kut...........................PASS
...

Drawing the AST

$ python main.py examples/fizzbuzz.kut --ast
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17
Fizz
19
Buzz

ast

About

Programming Language written for Compilers class

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages