  %token T_OBJECT_OPERATOR
  %token T_DOUBLE_ARROW
  %token T_LIST
-@@ -142,6 +147,7 @@
+@@ -142,6 +147,8 @@
  %token T_DOLLAR_OPEN_CURLY_BRACES
  %token T_CURLY_OPEN
  %token T_PAAMAYIM_NEKUDOTAYIM
 +%token T_IMPORT
++%token T_ENUM
  
  %% /* Rules */
  
-@@ -159,6 +165,7 @@
+@@ -159,6 +166,8 @@
  		statement
  	|	function_declaration_statement	{ zend_do_early_binding(TSRMLS_C); }
  	|	class_declaration_statement		{ zend_do_early_binding(TSRMLS_C); }
 +	|	package_declaration_statement
++	|	enum_declaration_statement
  ;
  
  
-@@ -172,6 +179,7 @@
+@@ -172,6 +181,7 @@
  		statement
  	|	function_declaration_statement
  	|	class_declaration_statement

 static zend_bool opline_is_fetch_this(zend_op *opline TSRMLS_DC)
 {
 	if ((opline->opcode == ZEND_FETCH_W) && (opline->op1.op_type == IS_CONST)
@@ -1038,6 +1175,9 @@
 
 	op_array.line_start = zend_get_compiled_lineno(TSRMLS_C);
 

 ;
 
 
@@ -226,8 +236,19 @@
 		'{' inner_statement_list '}' { zend_do_end_catch(&$1 TSRMLS_CC); }
 		additional_catches { zend_do_mark_last_catch(&$7, &$18 TSRMLS_CC); }
 	|	T_THROW expr ';' { zend_do_throw(&$2 TSRMLS_CC); }
