From: adam Date: Wed, 5 Jul 2006 02:47:59 +0000 (-0400) Subject: checkpoint X-Git-Tag: tag_for_25-Mar~213 X-Git-Url: http://git.megacz.com/?p=sbp.git;a=commitdiff_plain;h=d36770411e8f4122d946a0220c7f5b007c0df177;hp=32d016fe9745635fd9e260e98daf64fb2df5acdb checkpoint darcs-hash:20060705024759-5007d-88bcb68cedac146efaa0594263c327c00b529b9d.gz --- diff --git a/src/edu/berkeley/sbp/misc/Demo.java b/src/edu/berkeley/sbp/misc/Demo.java index 3e6436a..08a8a89 100644 --- a/src/edu/berkeley/sbp/misc/Demo.java +++ b/src/edu/berkeley/sbp/misc/Demo.java @@ -180,7 +180,19 @@ public class Demo { } public static abstract class Target { - public abstract int[] buildSequence(Production p); + public int[] buildSequence(Production p) { + Annotation[][] annotations = _bindable.getArgAnnotations(); + 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; i name.lastIndexOf('.')) { - len--; - ofs++; - } - */ - String[] names = new String[len]; - bind.arg[] argtags = new bind.arg[len]; - for(int i=0; i