diff options
author | Quinn Stephens <quinn@osmora.org> | 2024-11-07 16:59:19 -0500 |
---|---|---|
committer | Quinn Stephens <quinn@osmora.org> | 2024-11-07 16:59:19 -0500 |
commit | 6ab9c3732793b6fd40e6388cf1b08756194c0ea6 (patch) | |
tree | e7ae86e1bad944192f0b6fd130cb7d84afa4f180 /include/parser/stmt.h | |
parent | 063c40584ae78a396b558a5e2a08e3d871450c0b (diff) |
[compiler] Parse return statementsmain
Laid groundwork for statements and AST trees.
Currently return values are not supported, expression parsing must be implemented first.
Also stopped dumping parsed type definitions.
Signed-off-by: Quinn Stephens <quinn@osmora.org>
Diffstat (limited to 'include/parser/stmt.h')
-rw-r--r-- | include/parser/stmt.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/parser/stmt.h b/include/parser/stmt.h new file mode 100644 index 0000000..caf022c --- /dev/null +++ b/include/parser/stmt.h @@ -0,0 +1,16 @@ +/* + * Statement parser. + * Copyright (c) 2023-2024, Quinn Stephens and the OSMORA team. + * Provided under the BSD 3-Clause license. + */ + +#ifndef _PARSER_STMT_H +#define _PARSER_STMT_H + +#include "parser/ast.h" +#include "parser/proc.h" +#include "parser.h" + +void parse_stmt_block(struct parser *ctx, struct ast_node *parent, struct procedure *proc); + +#endif /* !_PARSER_STMT_H */ |