code / tomo

Lines41.3K C23.7K Markdown9.7K YAML5.0K Tomo2.3K
7 others 763
Python231 Shell230 make212 INI47 Text21 SVG16 Lua6
(13 lines)
1 // Logic for parsing various suffixes that can go after an expression
2 #pragma once
4 #include "../ast.h"
5 #include "context.h"
7 ast_t *parse_comprehension_suffix(parse_ctx_t *ctx, ast_t *expr);
8 ast_t *parse_field_suffix(parse_ctx_t *ctx, ast_t *lhs);
9 ast_t *parse_fncall_suffix(parse_ctx_t *ctx, ast_t *fn);
10 ast_t *parse_index_suffix(parse_ctx_t *ctx, ast_t *lhs);
11 ast_t *parse_method_call_suffix(parse_ctx_t *ctx, ast_t *self);
12 ast_t *parse_non_optional_suffix(parse_ctx_t *ctx, ast_t *lhs);
13 ast_t *parse_optional_conditional_suffix(parse_ctx_t *ctx, ast_t *stmt);