This is a very minimal toy language built for learning purposes, the objective was
to create a language and write Fibonacci in it, the language uses flex and bison
to parse a simple AST
that is executed by a C program I have some plans on
transforming the AST
into x86 instructions in the future
the language have the following syntax.
[>:fib n:
[:if n < 3:
return n - 1
]
return [:fib n - 1] + [:fib n - 2]
]
[:fib 10]
[>:fib n:
return n
]
[:fib 10]
[:if n < 3:
return n - 1
]
1 + 2
x + y
y + 3