foxp/src/parser.h

20 lines
269 B
C
Raw Normal View History

2024-06-02 20:48:09 +00:00
#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);