X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2Fbind%2Fbind.java;h=b4234ea6709990df129f8172339b83bd80a83b20;hp=47fe91b4be3ed35766ced7e42257f221cebea372;hb=2bee2b032b0422d212e17082cc4dcbf28cb897ac;hpb=d948b6363742aa34d9269cb4a49407e439ee896d diff --git a/src/edu/berkeley/sbp/bind/bind.java b/src/edu/berkeley/sbp/bind/bind.java index 47fe91b..b4234ea 100644 --- a/src/edu/berkeley/sbp/bind/bind.java +++ b/src/edu/berkeley/sbp/bind/bind.java @@ -11,50 +11,13 @@ import java.io.*; @Retention(RetentionPolicy.RUNTIME) public @interface bind { - /** - * Constructors, classes, and methods with this attribute will - * match every production of the nonterminal called "value()" - * that is arg-compatible. If value() is undefined, then the - * class/constructor/method name is used. - */ - /* - @Retention(RetentionPolicy.RUNTIME) public static @interface nonterminal { String value() default ""; } - */ @Retention(RetentionPolicy.RUNTIME) public static @interface raw { } - /** - * Constructors, classes, and methods with this attribute will - * match every tree tagged with "value()" that is arg-compatible. - * If value() is undefined, then the class/constructor/method - * name is used. - */ - @Retention(RetentionPolicy.RUNTIME) public static @interface as { String value() default ""; } - - /** - * If any parameter to a method or field in a class has a named - * arg-tag, that parameter/field matches the child of the tree - * which either has that label or else is a reference to a - * nonterminal with the corresponding name. - * - * The remaining non-named arg-tags match the remaining children - * of the tree in sequential order. - * - * If any arg-tagged parameters/fields remain, the match fails. - * If there were no arg-tagged parameters-fields, it is as if all - * of them were non-named and arg-tagged. - * - * A method/constructor is arg-compatible if all of its arguments - * are arg-compatible. - * - * A class is arg-compatible if all of its fields are - * arg-compatible, or if one of its constructors is arg-compatible. - * - */ @Retention(RetentionPolicy.RUNTIME) public static @interface arg { String value() default ""; } }