X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2Fmeta%2FProduction.java;h=117eb57b4ee95a6ffbfdf104efe0f10cd954e26b;hp=0abb9968c47ef073c06ef14bcfda7722a2915458;hb=a7ed3694a03bf9fe30e3274775c0646554e99bd4;hpb=2bee2b032b0422d212e17082cc4dcbf28cb897ac diff --git a/src/edu/berkeley/sbp/meta/Production.java b/src/edu/berkeley/sbp/meta/Production.java index 0abb996..117eb57 100644 --- a/src/edu/berkeley/sbp/meta/Production.java +++ b/src/edu/berkeley/sbp/meta/Production.java @@ -25,4 +25,57 @@ public class Production { if (!drops[i]) count++; } + + public int[] buildSequence(Bindable _bindable) { + Annotation[][] annotations = _bindable.getArgAnnotations(); + Class[] types = _bindable.getArgTypes(); + String[] names = _bindable.getArgNames(); + String name = _bindable.getSimpleName(); + int len = annotations.length; + int ofs = 0; + bind.arg[] argtags = new bind.arg[len]; + for(int i=0; i0 && types[0]==Input.Region.class; + for(int i=0; i