-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathashp4c.h
14 lines (13 loc) · 970 Bytes
/
ashp4c.h
1
2
3
4
5
6
7
8
9
10
11
12
13
Array* tokenize(Arena* storage, SourceText* source_text);
Ast* parse(Arena* storage, char* source_file, Array* tokens, Scope** root_scope);
void drypass(char* source_file, Ast* ast);
void builtin_methods(Arena* storage, char* source_file, Ast* ast);
Map* scope_hierarchy(Arena* storage, char* source_file, Ast* p4program, Scope* root_scope);
Map* name_bind(Arena* storage, char* source_file, Ast* p4program, Scope* root_scope,
Map* scope_map, Array** type_array);
Map* declared_types(Arena* storage, char* source_file, Ast* p4program, Scope* root_scope,
Array* type_array, Map* scope_map, Map* decl_map);
Map* potential_types(Arena* storage, char* source_file, Ast* ast, Scope* root_scope,
Map* scope_map, Map* decl_map, Map* type_env);
void select_type(Arena* storage_, char* source_file_, Ast* p4program, Scope* root_scope_,
Array* type_array, Map* scope_map_, Map* decl_map_, Map* type_env_, Map* potype_map);