This is an example compiler for a simple functional "let"
lanuage. The mini language is compiled into a simple stack based
assembly language that includes labels, jumps, and branches.
Below are the related files for the languages and the compiler
I've written both Java and C# versions to demonstrate the
usefull nature of correctly written CD files. It also gives me a
chance to make sure the DemFGen Java and C# code generation works
DemFGen Lib CD File:
(let a = 7 in (if (< 4 3) (* a 2) (/ a 2)))
Generated Ouput Code: