at.dms.kjc.sir.lowering
Class ArrayInitExpander
java.lang.Object
at.dms.kjc.sir.lowering.ArrayInitExpander
public class ArrayInitExpander
- extends Object
This class expands array initializers that read from files into
static constants. For example:
int[5] foo = init_array_1D_int("foo.txt", 5);
if foo.txt contains:
1
2
3
4
5
then this class translates the declaration to:
int[5] foo = {1,2,3,4,5};
Method Summary |
static void |
doit(SIRStream str)
Returns version of with array initializers expanded. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayInitExpander
public ArrayInitExpander()
doit
public static void doit(SIRStream str)
- Returns version of with array initializers expanded.