Send Close Add comments: (status displays here)
Got it!  This site uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.nbsp; Note: This appears on each machine/browser from which this site is accessed.
Prolog: control flow compiler


1. Prolog: control flow compiler

2. Prolog control flow compiler
Here we look at a small Prolog compiler for control flow.

This small example shows how Prolog can be used to prototype various aspects of control flow in a compiler that generates code. Here is the Prolog code.

Here is the output of the Prolog code.

Here is the C code.

Here is the output of the C code.


3. End of page