// /* empty */
// | T_EXTENDS fully_qualified_class_name
if (token == TokenNameextends) {
- interface_extends_list(typeDecl);
+ class_extends_list(typeDecl);
// getNextToken();
// if (token != TokenNameIdentifier) {
// throwSyntaxError("Class name expected after keyword
// | T_EXTENDS interface_list
if (token == TokenNameextends) {
getNextToken();
+ interface_list(typeDecl);
+ }
+ }
+
+ private void class_extends_list(TypeDeclaration typeDecl) {
+ // /* empty */
+ // | T_EXTENDS interface_list
+ if (token == TokenNameextends) {
+ getNextToken();
class_list(typeDecl);
}
}
throwSyntaxError("Classname expected after keyword 'extends'.");
}
if (token == TokenNameCOMMA) {
- reportSyntaxError("No multiple inheritence allowed. Expected token 'implements' or '{'.");
+ reportSyntaxError("No multiple inheritance allowed. Expected token 'implements' or '{'.");
getNextToken();
continue;
} else {