Closed mewmew closed 8 years ago
After discussions, we've decided to remove the TopLevelDecl
special case and make function declarations behave like any other declaration. This should simplify the grammar and the AST, while semantic checks should be added to ensure that declarations within functions are not function declarations (unless the GNU extension of nested functions is enabled; see issue #43).
TopLevelDecl
and Decl
were merged in commit 3db3068. Closing this issue.
From ast.go: