317a318
> # Function definition and declaration
319c320,324
< """decl : void ident '(' params ')' pairs SEMI
---
> "decl : func_decl"
> p[0] = p[1]
>
> def p_func_decl__0(self, p):
> """func_decl : void ident '(' params ')' pairs SEMI
324,325c329,334
< """decl : void ident '(' params ')' pairs statements
< | type ident '(' params ')' pairs statements"""
---
> "decl : func_def"
> p[0] = p[1]
>
> def p_func_def__0(self, p):
> """func_def : void ident '(' params ')' pairs statements
> | type ident '(' params ')' pairs statements"""
340a350,353
> def p_type_method__1(self, p):
> "type_member : type_or_void ident '(' params ')' pairs statements"
> p[0] = ast.FuncDeclAST(self, p[1], p[2], p[4], p[6], p[7])
>