⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 polish.m

📁 用YACC实现的一个小的编译工具
💻 M
字号:
with spec;extern "C" void printf(...);extern "C" void polish(Expr e);void polish(Expr e){   match e {      rule plus (x, y)   :  printf("plus\n");   polish(x); polish(y);      rule minus (x, y)  :  printf("minus\n");  polish(x); polish(y);      rule mult (x, y)   :  printf("mult\n");   polish(x); polish(y);      rule divide (x, y) :  printf("divide\n"); polish(x); polish(y);      rule neg (x)       :  printf("neg\n");    polish(x);      rule num (x)       :  printf("%d\n", x);   }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -