diff options
Diffstat (limited to 'parse.h')
| -rw-r--r-- | parse.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,16 +1,22 @@ #ifndef PARSE #define PARSE #include "proposition.h" +typedef struct Scope { + int id; + int depth; + struct Scope* parent; +} scope_t; +scope_t init_scope(int id, int depth, scope_t* parent); typedef struct Line { - int aLevel; + scope_t scope; prop_t proposition; just_t justification; } line_t; +line_t init_line(scope_t scope, prop_t proposition, just_t justification); typedef struct LineSet { line_t* lines; int count; } lineSet_t; -line_t init_line(int aLevel, prop_t proposition, just_t justification); lineSet_t init_lineset(line_t* lines, int count); int count_lines(char* content); lineSet_t parse_lines(char* content, int lineCount); |
