hack-assembler/parser.h
2020-11-21 10:49:37 -03:00

19 lines
237 B
C

#ifndef PARSER_H
#define PARSER_H
#include <stdio.h>
#include "util.h"
#define INST_LIMIT 1<<15
typedef struct {
FILE* input;
int maxwidth;
LINELIST* output;
} PARSER;
PARSER* mkparser(FILE* input);
void parse(PARSER* p);
#endif