April 7th, 2007
It consist of three programs: assembler (+disassembler), execution environment and compiler of a high-level language (higher than assembler). First two are written in C, whereas compiler is written using ocamllex and ocamlyacc.
Currently, the latest version is available at: NVM it still needs a lot of work and tests. Feel free to comment it.
An example of language which is compiled by ocamllex and ocamlyacc:
def fibo($a, $b)
$c = $a + $b;
puti($a);
puts($Sep);
$a = $b;
$b = $c;
if ($c < 10000)
call fibo($a, $b);
;;
;;
def start($test)
$Sep = '\n';
puts('Fibonacci series:\n');
call fibo(1, 1);
;;
Static pages
Tags
Newest articles
Recently updated
External links
Add a comment [+] Hide the comment form [-]