20 lines
269 B
C
20 lines
269 B
C
|
#include <stdio.h>
|
||
|
|
||
|
enum SyntaxElementType {
|
||
|
TOPTREE,
|
||
|
TREE,
|
||
|
TOKEN,
|
||
|
STRING,
|
||
|
NUMBER,
|
||
|
NONE
|
||
|
};
|
||
|
|
||
|
struct SyntaxElement {
|
||
|
enum SyntaxElementType type;
|
||
|
void* content;
|
||
|
struct SyntaxElement* next;
|
||
|
struct SyntaxElement* top;
|
||
|
};
|
||
|
|
||
|
struct SyntaxElement* parse(FILE* file);
|