X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2Fmisc%2FDemo.java;h=08a8a8971ed11a510d0edb7b7ef3b126820a1132;hp=3e6436a75a9d7fe1dcd8c61a447286f62419b47e;hb=d36770411e8f4122d946a0220c7f5b007c0df177;hpb=32d016fe9745635fd9e260e98daf64fb2df5acdb 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