Description: Eight, design SAMPLE language grammar, semantic analyzer, the output quaternion type of intermediate results. Inspection requirements: a] start the process, the first output of the author' s name, class, study number [available in Chinese, English or Pinyin]. b] a request to enter the test program name, type the program name after the compiler automatically. c] output type between quaternion code [see sample output pattern 3 and 4]. d] the procedure can be found in a syntax error and output error message.
File list (Check if you may need any files):
test1.txt
test2.txt
主函数.cpp
四元式.cpp
头文件.h
布尔运算.cpp
控制.cpp
词法分析.cpp
赋值.cpp
项目.cpp