Some more AST work. Functions no longer retain an identifer for their name.

This commit is contained in:
Nathan Braswell
2013-10-26 11:47:34 -04:00
parent 02fd878c92
commit e818236e90
5 changed files with 53 additions and 5 deletions

View File

@@ -2,14 +2,15 @@
#define ASTDATA_H
#include <vector>
#include <set>
#include "Symbol.h"
#ifndef NULL
#define NULL 0
#endif
enum ASTType {translation_unit, interpreter_directive, identifier,
import, function, code_block,
enum ASTType {undef, translation_unit, interpreter_directive, import, identifier,
function, code_block,
typed_parameter, expression, boolean_expression, statement,
if_statement, return_statement, assignment_statement, function_call,
value};