%{
+#include <config.h>
#include <iostream>
#include <sstream>
%token T_CLASS
%token T_STRUCT
%token T_STATIC
+%token T_SUSPEND
+%token T_CUSTOM
%token T_CONST
%token T_UNSIGNED
%token T_SIGNED
%token T_BOOL
%token T_CHAR
%token T_SHORT
-%token T_INT
%token T_LONG
-%token T_FLOAT
%token T_DOUBLE
%token T_PUBLIC
%token T_PROTECTED
current_function->docu_comment = last_docucomment;
last_docucomment = "";
}
- parameter_list ')' maybe_const abstract_declaration ';'
+ parameter_list ')' function_attributes abstract_declaration ';'
{
$$ = current_function;
}
;
-maybe_const:
+function_attributes:
/* empty */
- | T_CONST
+ | T_CONST function_attributes
+ | T_CUSTOM function_attributes
+ {
+ current_function->custom = true;
+ }
+ | T_SUSPEND function_attributes
+ {
+ current_function->suspend = true;
+ }
;
abstract_declaration: