More file comments
This commit is contained in:
parent
df2e01c15e
commit
ced54c2919
3
ast.h
3
ast.h
@ -1,4 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Logic defining ASTs (abstract syntax trees) to represent code
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Compilation functions
|
||||||
|
|
||||||
#include <gc/cord.h>
|
#include <gc/cord.h>
|
||||||
#include <gc.h>
|
#include <gc.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
3
enums.h
3
enums.h
@ -1,4 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Compilation of tagged unions (enums)
|
||||||
|
|
||||||
#include <gc/cord.h>
|
#include <gc/cord.h>
|
||||||
|
|
||||||
#include "ast.h"
|
#include "ast.h"
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Compilation environments
|
||||||
|
|
||||||
#include <gc/cord.h>
|
#include <gc/cord.h>
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
4
parse.h
4
parse.h
@ -1,5 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Parsing logic
|
||||||
|
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
|
||||||
#include "ast.h"
|
#include "ast.h"
|
||||||
@ -7,3 +9,5 @@
|
|||||||
type_ast_t *parse_type_str(const char *str);
|
type_ast_t *parse_type_str(const char *str);
|
||||||
ast_t *parse_expression_str(const char *str);
|
ast_t *parse_expression_str(const char *str);
|
||||||
ast_t *parse_file(file_t *file, jmp_buf *on_err);
|
ast_t *parse_file(file_t *file, jmp_buf *on_err);
|
||||||
|
|
||||||
|
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Compilation of user-defined structs
|
||||||
|
|
||||||
#include "ast.h"
|
#include "ast.h"
|
||||||
#include "environment.h"
|
#include "environment.h"
|
||||||
|
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Type-checking functions
|
||||||
|
|
||||||
#include <gc.h>
|
#include <gc.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user