1
我開發一個程序野牛,需要有一個最後的選擇,允許它承認什麼。就像一個否則,如果...通用識別命令野牛
感謝
commands: F{
t[top++] = 'F';
}
|PLUS{
t[top++] = '+';
}
|MINUS{
t[topo++] = '-';
}
|ACOL {
t[top++] = '[';
}
|FCOL{
t[top++] = ']';
}
|POINT{
t[top++] = '.';
}
|EQUAL {
t[top++] = '=';
}
| {
/* generic command should be here
if any of the commands above were found it should run whatever is here*/
}
有關於此的任何想法? – Arielsp