My Project
Loading...
Searching...
No Matches
ast_getter.h
Go to the documentation of this file.
1
4#ifndef __AST_GETTER
5#define __AST_GETTER
6
12typedef struct Comment {
13 m_str str;
16 bool alone;
18MK_VECTOR_TYPE(Comment, comment)
19
20
21typedef struct AstGetter_ {
22 const char *name;
23 FILE * f;
24 SymTable * st;
26 CommentList **comments;
27 bool fmt;
29
30ANN Ast parse_pos(struct AstGetter_ *const, const pos_t);
31ANN static inline Ast parse(struct AstGetter_ *const arg) {
32 pos_t pos;
33 pos_ini(&pos);
34 return parse_pos(arg, pos);
35}
36#endif
MK_VECTOR_TYPE(Tag, tag)
struct SectionList * Ast
Definition absyn.h:23
comment_t
Definition ast_getter.h:7
@ comment_normal
Definition ast_getter.h:8
@ comment_after
Definition ast_getter.h:9
@ comment_before
Definition ast_getter.h:10
static ANN Ast parse(struct AstGetter_ *const arg)
Definition ast_getter.h:31
struct AstGetter_ AstGetter
struct Comment Comment
ANN Ast parse_pos(struct AstGetter_ *const, const pos_t)
Definition scanner.c:36
ANN void pos_ini(pos_t *pos)
Definition gwlog.c:11
FILE * f
Definition ast_getter.h:23
CommentList ** comments
Definition ast_getter.h:26
const char * name
Definition ast_getter.h:22
SymTable * st
Definition ast_getter.h:24
PPArg * ppa
Definition ast_getter.h:25
m_str str
Definition ast_getter.h:13
comment_t type
Definition ast_getter.h:15
loc_t loc
Definition ast_getter.h:14
bool alone
Definition ast_getter.h:16
Definition pparg.h:7
Definition gwlog.h:15
Definition gwlog.h:7