1 #include<iostream>
 2 #include<stdlib.h>
 3 #include<stdio.h>
 4 #include<string.h>
 5 
 6 /*************STRUCT*************/
 7 #ifndef keyword
 8 #define keyword
 9 /*
10  * 关键字结构,用于work2.cpp
11  */
12 struct KEYWORD_NODE{
13     char val[100];
14 };
15 
16 /*
17  * 非终结符结构,用于work3.cpp
18  */
19 struct N_NODE{//非终结符
20     char val;//
21     int cnt;//产生式数目
22     char ARR[30][30];
23 };
24 #endif
25 
26 /************FUNCTION************/
27 void init();
28 bool isLetter(char ch);
29 void dealSourceCode();
30 void morphologyAnalysis();
31 void dealOperatorPrecedenceGrammar();
32 using namespace std;


相关文章:

  • 2021-07-11
  • 2021-10-25
  • 2022-01-17
  • 2021-04-09
  • 2022-01-13
  • 2021-12-03
  • 2021-05-25
猜你喜欢
  • 2021-07-06
  • 2022-12-23
  • 2021-05-04
  • 2022-12-23
  • 2021-04-10
  • 2021-07-22
相关资源
相似解决方案