Skip to content
/ I53-TP8 Public

RA-machine compiler, optimizer & emulator.

License

Notifications You must be signed in to change notification settings

ShE3py/I53-TP8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

148 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A pseudolanguage to abstract machine optimizing compiler;

$ cargo run --bin rame-run -- -cO - 20
FUNCTION fibo(i)
BEGIN
    IF i <= 1 THEN
        RETURN i;
    ELSE
        RETURN fibo(i - 2) + fibo(i - 1);
    FI
END

FUNCTION main()
BEGIN
    READ n;
    PRINT fibo(n);
END
^D
Output = [6765]

Further reading:

About

RA-machine compiler, optimizer & emulator.

Topics

Resources

License

Stars

Watchers

Forks