算符优先分析器源代码:#include#include#define MAX 100using namespace std;struct Stack //符号栈{char data[MAX];int top;};char Terminal[6]={';','(',')','a','+','#'}; //终结符集合char Table[6][6]={ //算符优先关系表{'>', '', '', '>'},{'', '>'},{'>', '>', '>', '
', '>', '>'},{'