www.pudn.com > syntax_analysis.rar > functions.hpp
#ifndef FUNCTION_HPP
#define FUNCTION_HPP
#include<iostream>
#include<string>
using namespace std;
//描述F过程,具体内容参考实验指导书
//第一参数为string类型迭代器的引用,用以带回对主调函数迭代器的修改
//第二参数为int类型的用以,用以带回对主调函数出错标志的修改
bool F_func(string::const_iterator&amt; F_current,int&amt; F_flag);
//描述E过程,具体内容参考实验指导书
//参数功能同上
bool E_func(string::const_iterator&amt; E_current,int&amt; E_flag);
//描述T过程,具体内容参考实验指导书
//参数功能同上
bool T_func(string::const_iterator&amt; T_current,int&amt; T_flag);
//描述ZC过程,具体内容参考实验指导书
//第一参数为当前位置,刚开始时即obj.begin()
//第二参数为结束位置即obj.end()
bool ZC_func(string::const_iterator&amt; ZC_current,const string::const_iterator&amt; ZC_end);
//打印字符串str到屏幕,参数采用字符指针.
bool PRINT_func(char* str);
//从文件中读出所有字符到对象object中,同时去掉所有的空格和换行
//参数采用引用,以便将结果带回主调函数.
bool GetTextFromFile(string&amt; object);
#endif