projects/07/src/codewriter.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
#ifndef _CODEWRITER_H
#define _CODEWRITER_H
// 'parser.h' roughly corresponds to the 'Parser' module specified in
// nand2tetris, with a few liberties taken.
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "parser.h"
#define DBGLOG printf
//#define DBGLOG(...)
#define MAX_LINE_LEN 256 // TODO need to be redefined here? (remove me)
bool write_instruction(struct vm_instruction_t *vm_instr, FILE *fp)
{
// TODO implement
// STUB!
return true;
}
#endif // _CODEWRITER_H
|