summaryrefslogtreecommitdiff
path: root/parse.h
blob: 320ca45fc1d0f181f77a3faae4a5761481bcf78c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef PARSE
#define PARSE
#include "proposition.h"
typedef struct Line {
	int aLevel;
	prop_t proposition;
	just_t justification;
} line_t;
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);
line_t parse_line(char* content);
prop_t parse_proposition(tokenSet_t tokenSet, int* seek, char isNegative);
just_t parse_justification(tokenSet_t tokenSet);
#endif