de.cau.cs.kieler.krep.compiler.main
Class Ec2klp

java.lang.Object
  extended by de.cau.cs.kieler.krep.compiler.main.Ec2klp

public final class Ec2klp
extends Object

Compile Lustre ec-file to KLP assembler.

Rating yellow
(2010-02-05) review by cmot, msp, tam

Constructor Summary
Ec2klp()
           
 
Method Summary
 String compile(String name, InputStream ec, boolean useClocks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ec2klp

public Ec2klp()
Method Detail

compile

public String compile(String name,
                      InputStream ec,
                      boolean useClocks)
               throws ParseException
Parameters:
name - name of the program
ec - input stream with ec code
useClocks - true to compile for a KLP with hardware clocks
Returns:
klp code
Throws:
ParseException - thrown if anything goes wrong during compilation