jack-compiler/parser/parser.h

19 lines
330 B
C
Raw Normal View History

2020-12-14 14:12:20 -05:00
#ifndef PARSER_H
#define PARSER_H
#include "tokenizer.h"
2020-12-21 18:35:41 -05:00
#include "parser-tree.h"
2020-12-14 14:12:20 -05:00
2020-12-31 18:24:27 -05:00
/* parser
* This is the file that should be included in other modules
* that want to parse a file. */
2020-12-14 14:12:20 -05:00
typedef struct {
TOKEN* tokens;
TOKEN* current;
TOKEN* checkpoint;
char* file;
} PARSER;
2020-12-29 19:27:48 -05:00
CLASS* parse(TOKEN* tokens, char* file);
2020-12-14 14:12:20 -05:00
#endif