X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2Fmisc%2FJava15.java;h=3e53876d20bc135888f41e5c250041a71e63fe3f;hb=2ce79345d1c7533a1328fab2814f467af5aefb15;hp=0e088790b4ed5a460c4b63f3175f902dac816165;hpb=3ee451bce342d4bb61ad6235ba57bdf817bfdd1a;p=sbp.git diff --git a/src/edu/berkeley/sbp/misc/Java15.java b/src/edu/berkeley/sbp/misc/Java15.java index 0e08879..3e53876 100644 --- a/src/edu/berkeley/sbp/misc/Java15.java +++ b/src/edu/berkeley/sbp/misc/Java15.java @@ -1,6 +1,6 @@ -// Copyright 2006 all rights reserved; see LICENSE file for BSD-style license +// Copyright 2006-2007 all rights reserved; see LICENSE file for BSD-style license -// Copyright 2006 the Contributors, as shown in the revision logs. +// Copyright 2006-2007 the Contributors, as shown in the revision logs. // Licensed under the Apache Public Source License 2.0 ("the License"). // You may not use this file except in compliance with the License. @@ -10,19 +10,20 @@ import edu.berkeley.sbp.misc.*; import edu.berkeley.sbp.meta.*; import edu.berkeley.sbp.util.*; import edu.berkeley.sbp.chr.*; -import edu.berkeley.sbp.bind.*; import java.util.*; import java.io.*; public class Java15 { - + /* public static void main(String[] s) throws Exception { try { Tree res = new CharParser(MetaGrammar.newInstance()).parse(new FileInputStream(s[0])).expand1(); //AnnotationGrammarBindings resolver = new AnnotationGrammarBindings(Java15.class); - Grammar.Bindings resolver = new Grammar.Bindings(); + Grammar.Bindings resolver = new Grammar.Bindings() { + public Object repeatTag() { return ""; } + }; Union javaGrammar = Grammar.create(res, "s", resolver); System.err.println("parsing " + s[1]); @@ -45,5 +46,5 @@ public class Java15 { } } - + */ }