Skip to content
Snippets Groups Projects
Commit 83518f9a authored by benjamin.franksen's avatar benjamin.franksen
Browse files

snc: removed unnecessary keyword "function"

parent cac36cf5
No related branches found
No related tags found
No related merge requests found
...@@ -479,8 +479,8 @@ member(p) ::= NAME(t). { p = expr(E_MEMBER, t); } ...@@ -479,8 +479,8 @@ member(p) ::= NAME(t). { p = expr(E_MEMBER, t); }
functions(p) ::= . { p = 0; } functions(p) ::= . { p = 0; }
functions(p) ::= functions(fs) function(f). { p = link_expr(fs, f); } functions(p) ::= functions(fs) function(f). { p = link_expr(fs, f); }
function(p) ::= FUNCTION(l) basetype(t) declarator(d) block(b). { function(p) ::= basetype(t) declarator(d) block(b). {
p = expr(D_FUNCDEF, l, decl_add_base_type(d, t), b); p = expr(D_FUNCDEF, token_from_expr(d), decl_add_base_type(d, t), b);
} }
// Literal (C) code // Literal (C) code
......
...@@ -245,7 +245,6 @@ snl: ...@@ -245,7 +245,6 @@ snl:
"float" { TYPEWORD(FLOAT, "float"); } "float" { TYPEWORD(FLOAT, "float"); }
"for" { KEYWORD(FOR, "for"); } "for" { KEYWORD(FOR, "for"); }
"foreign" { TYPEWORD(FOREIGN, "foreign"); } "foreign" { TYPEWORD(FOREIGN, "foreign"); }
"function" { TYPEWORD(FUNCTION, "function"); }
"if" { KEYWORD(IF, "if"); } "if" { KEYWORD(IF, "if"); }
"int" { TYPEWORD(INT, "int"); } "int" { TYPEWORD(INT, "int"); }
"long" { TYPEWORD(LONG, "long"); } "long" { TYPEWORD(LONG, "long"); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment