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; // TODO: use it!
17 bool block;
19MK_VECTOR_TYPE(Comment, comment)
20
21
22typedef struct AstGetter_ {
23 char *name;
24 FILE * f;
25 SymTable * st;
27 CommentList **comments;
28 bool fmt;
30
31ANN Ast parse_pos(struct AstGetter_ *const, const pos_t);
32ANN static inline Ast parse(struct AstGetter_ *const arg) {
33 pos_t pos;
34 pos_ini(&pos);
35 return parse_pos(arg, pos);
36}
37#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:32
struct AstGetter_ AstGetter
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
struct loc_t_ loc_t
Definition absyn.h:348
struct PPArg_ PPArg
FILE * f
Definition ast_getter.h:24
CommentList ** comments
Definition ast_getter.h:27
SymTable * st
Definition ast_getter.h:25
PPArg * ppa
Definition ast_getter.h:26
char * name
Definition ast_getter.h:23
m_str str
Definition ast_getter.h:13
comment_t type
Definition ast_getter.h:15
bool block
Definition ast_getter.h:17
loc_t loc
Definition ast_getter.h:14
bool alone
Definition ast_getter.h:16
Definition gwlog.h:7