hack-assembler/parser.h

19 lines
237 B
C
Raw Normal View History

2020-11-20 18:24:02 -05:00
#ifndef PARSER_H
#define PARSER_H
2020-11-20 18:31:31 -05:00
2020-11-20 18:24:02 -05:00
#include <stdio.h>
2020-11-20 18:31:31 -05:00
#include "util.h"
2020-11-20 18:24:02 -05:00
#define INST_LIMIT 1<<15
typedef struct {
FILE* input;
int maxwidth;
LINELIST* output;
} PARSER;
PARSER* mkparser(FILE* input);
void parse(PARSER* p);
#endif