diff options
| author | Mistivia <i@mistivia.com> | 2025-03-25 13:07:21 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-03-25 13:07:21 +0800 |
| commit | fb7664e087cb1afb64aae2128365f703beb30b57 (patch) | |
| tree | 6d4e2a4cc695052e489ec9e3fd28538a79a08f4c /src/as_parser.h | |
| parent | dc87ff4b0c9f311be7fad652594e3766a4ddb0c6 (diff) | |
add result style error handling
Diffstat (limited to 'src/as_parser.h')
| -rw-r--r-- | src/as_parser.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/as_parser.h b/src/as_parser.h index 4630186..5d850c9 100644 --- a/src/as_parser.h +++ b/src/as_parser.h @@ -34,11 +34,11 @@ struct prog { struct stmts * stmts; }; -struct prog * parse_prog(struct allocator * alct, struct token_stream * ts); -struct stmt * parse_stmt(struct allocator * alct, struct token_stream * ts); -struct stmts * parse_stmts(struct allocator * alct, struct token_stream * ts); -struct instr * parse_instr(struct allocator * alct, struct token_stream * ts); -struct label * parse_label(struct allocator * alct, struct token_stream * ts); -enum op parse_op(struct allocator * alct, struct token_stream * ts); +struct result parse_prog(struct allocator * alct, struct token_stream * ts); +struct result parse_stmt(struct allocator * alct, struct token_stream * ts); +struct result parse_stmts(struct allocator * alct, struct token_stream * ts); +struct result parse_instr(struct allocator * alct, struct token_stream * ts); +struct result parse_label(struct allocator * alct, struct token_stream * ts); +struct result parse_op(struct allocator * alct, struct token_stream * ts); #endif |
