From d36770411e8f4122d946a0220c7f5b007c0df177 Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 4 Jul 2006 22:47:59 -0400 Subject: [PATCH] checkpoint darcs-hash:20060705024759-5007d-88bcb68cedac146efaa0594263c327c00b529b9d.gz --- src/edu/berkeley/sbp/misc/Demo.java | 72 +++++++---------------------------- 1 file changed, 13 insertions(+), 59 deletions(-) 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