X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/test/PHPParser.jj b/net.sourceforge.phpeclipse/src/test/PHPParser.jj index 9e3fc1d..46fb115 100644 --- a/net.sourceforge.phpeclipse/src/test/PHPParser.jj +++ b/net.sourceforge.phpeclipse/src/test/PHPParser.jj @@ -277,10 +277,14 @@ PARSER_END(PHPParser) "/*" : IN_MULTI_LINE_COMMENT } - -SPECIAL_TOKEN : + SPECIAL_TOKEN : { - " > : PHPPARSING + : PHPPARSING +} + + TOKEN : +{ + " > : DEFAULT } @@ -352,6 +356,8 @@ MORE : | < TRUE: "true" > | < WHILE: "while" > | < ENDWHILE : "endwhile" > +| +| } /* TYPES */ @@ -870,6 +876,9 @@ String Type() : | {return "integer";} +| + + {return "object";} } String Expression() : @@ -1528,6 +1537,8 @@ void Statement() : | ForStatement() | + ForeachStatement() +| BreakStatement() | ContinueStatement() @@ -1792,6 +1803,12 @@ void DoStatement() : } } +void ForeachStatement() : +{} +{ + Variable() Variable() [ Expression() ] Statement() +} + void ForStatement() : {} {