code / tomo

Lines41.3K C23.7K Markdown9.7K YAML5.0K Tomo2.3K
7 others 763
Python231 Shell230 make212 INI47 Text21 SVG16 Lua6
(18 lines)
1 // Logic for parsing control flow
2 #pragma once
4 #include "../ast.h"
5 #include "context.h"
7 ast_t *parse_block(parse_ctx_t *ctx, const char *pos);
8 ast_t *parse_defer(parse_ctx_t *ctx, const char *pos);
9 ast_t *parse_do(parse_ctx_t *ctx, const char *pos);
10 ast_t *parse_for(parse_ctx_t *ctx, const char *pos);
11 ast_t *parse_if(parse_ctx_t *ctx, const char *pos);
12 ast_t *parse_pass(parse_ctx_t *ctx, const char *pos);
13 ast_t *parse_repeat(parse_ctx_t *ctx, const char *pos);
14 ast_t *parse_return(parse_ctx_t *ctx, const char *pos);
15 ast_t *parse_skip(parse_ctx_t *ctx, const char *pos);
16 ast_t *parse_stop(parse_ctx_t *ctx, const char *pos);
17 ast_t *parse_when(parse_ctx_t *ctx, const char *pos);
18 ast_t *parse_while(parse_ctx_t *ctx, const char *pos);