vast improvement in error reporting
[sbp.git] / tests / java15.g
index f89658e..3b33aca 100644 (file)
@@ -23,7 +23,7 @@ ClassDecl     = Class::     Modifiers "class"     TypeDecl ClassBody /ws
 InterfaceDecl = Interface:: Modifiers "interface" TypeDecl ClassBody /ws
 
 TypeDecl =                   Identifier
-         | GenericTypeDecl:: Identifier "<" (TypeArg +/ Comma) ">" /ws
+         | GenericTypeDecl:: Identifier "<" (TypeArg +/ comma) ">" /ws
 
 TypeArg =                Identifier
         | Extends::      Identifier "extends" Type  /ws
@@ -43,17 +43,17 @@ MethodDecl = Method:: MethodHeader (";" | MethodBody) /ws
 MethodHeader  = MethodHeader:: Modifiers Type Identifier Args /ws
 MethodBody    = "{" "}" /ws
 
-Args = "(" (Arg+/Comma) ")" /ws
+Args = "(" (Arg+/comma) ")" /ws
      | "(" ws! ")"
 Arg = Arg:: Type Identifier /ws
 
 Type        = BareType | GenericType | ArrayType
 BareType    = Type::        TypeName | "boolean" | "int" | "double" | "float" | "char" | "short" | "long" | "void"
-GenericType = GenericType:: TypeName "<" (Type+/Comma) ">" /ws
+GenericType = GenericType:: TypeName "<" (Type+/comma) ">" /ws
 ArrayType   = ArrayOf::     (BareType | GenericType) "[]" /ws
 
 ws = [\r\n ]**
-Comma = ws! "," ws!
+comma = ws! "," ws!
 
 JavaLetter = [a-zA-Z_$]
 Identifier = JavaLetter++