coins.lir2c
Class MakeDecl

java.lang.Object
  extended bycoins.lir2c.MakeDecl

public class MakeDecl
extends java.lang.Object

MakeDecl: make declaration of C from Symbol object. now it only supports SymAuto objects.


Constructor Summary
MakeDecl()
          Constructor(with no arg)
 
Method Summary
static java.lang.String makeDeclAuto(Symbol sym)
          makeDeclAuto: static method for making declaration of C code from SymAuto object.
static Decla makeDeclStatic(Symbol sym, Data data)
          makeDeclStatic: static method for making declaration of C code from SymStatic object and Data object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MakeDecl

public MakeDecl()
Constructor(with no arg)

Method Detail

makeDeclAuto

public static java.lang.String makeDeclAuto(Symbol sym)
makeDeclAuto: static method for making declaration of C code from SymAuto object.

Returns:
the string of C declaration.

makeDeclStatic

public static Decla makeDeclStatic(Symbol sym,
                                   Data data)
makeDeclStatic: static method for making declaration of C code from SymStatic object and Data object.

Parameters:
sym - a Symbol object that makes a C declaration. it must be a SymStatic object.
data - a Data object that makes a C declaration.
Returns:
the Decla object that contains C declaration.