checkpoint
[sbp.git] / src / edu / berkeley / sbp / misc / MetaGrammar.java
index 013ab09..e181600 100644 (file)
@@ -118,6 +118,7 @@ public class MetaGrammar extends StringWalker {
         else if ("**".equals(head))  return Repeat.maximal0((Element)walk(tree.child(0)));
         else if ("++".equals(head))  return Repeat.maximal1((Element)walk(tree.child(0)));
         else if ("?".equals(head))   return Repeat.maybe((Element)walk(tree.child(0)));
+        else if ("!".equals(head))   return walk(tree.child(0));
         else if ("&".equals(head))
             return ((Sequence)walk(tree,0)).and(new PreSequence((Element[])Reflection.lub((Object[])walk(tree, 1)), null).buildSequence(null, true, false));
         else if ("&~".equals(head))