编辑:MinC 参考:https ://en.wikibooks.org/wiki/MINC/Reference/MINC1-programmers-guide
使用 flex 和 bison 编写编译器,出现以下语法错误:
ERROR: syntax error at symbol '(' on line 9
#include <stdio.h>
#define MEM_SIZE 10000
char Memory[MEM_SIZE];
int Frame_Pointer = 0;
int Stack_Pointer = 0;
int Temp = 0;
double Temp_F = 0.0;
int main() {
(*(int *)(&Memory[Frame_Pointer + 0 ])) = (*(int *)(&Memory[Stack_Pointer + 0]));