aboutsummaryrefslogtreecommitdiff
path: root/src/as_parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/as_parser.h')
-rw-r--r--src/as_parser.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/src/as_parser.h b/src/as_parser.h
deleted file mode 100644
index f1d3b62..0000000
--- a/src/as_parser.h
+++ /dev/null
@@ -1,62 +0,0 @@
-#ifndef FVM_AS_PARSER_H_
-#define FVM_AS_PARSER_H_
-
-#include "as_tokenizer.h"
-#include "utils.h"
-
-#include "as_op.h"
-
-struct arg {
- int64_t ival;
- double fval;
-};
-typedef struct arg arg;
-
-struct instr {
- enum op op;
- arg* arg;
- const char* tag_name;
- int lineno;
-};
-typedef struct instr instr;
-
-struct label {
- const char* name;
-};
-typedef struct label label;
-
-struct stmt {
- struct label * label;
- struct instr * instr;
-};
-typedef struct stmt stmt;
-
-struct stmts {
- struct stmt ** stmts;
-};
-typedef struct stmts stmts;
-
-struct prog {
- struct stmts * stmts;
-};
-typedef struct prog prog;
-
-// result<prog>
-result parse_prog(allocator* alct, token_stream* ts);
-
-// result<stmt>
-result parse_stmt(allocator* alct, token_stream* ts);
-
-// result<stmts>
-result parse_stmts(allocator* alct, token_stream* ts);
-
-// result<instr>
-result parse_instr(allocator* alct, token_stream* ts);
-
-// result<label>
-result parse_label(allocator* alct, token_stream* ts);
-
-// result<enum op>
-result parse_op(allocator* alct, token_stream* ts);
-
-#endif