jack-compiler/parser/parser.h

19 lines
330 B
C

#ifndef PARSER_H
#define PARSER_H
#include "tokenizer.h"
#include "parser-tree.h"
/* parser
* This is the file that should be included in other modules
* that want to parse a file. */
typedef struct {
TOKEN* tokens;
TOKEN* current;
TOKEN* checkpoint;
char* file;
} PARSER;
CLASS* parse(TOKEN* tokens, char* file);
#endif