📄 analyzetable.h
字号:
/************************************************************************ Copyright IBMTC Written by Xinxi Wang**************************************************************************/#ifndef ANALYZETABLE_H#define ANALYZETABLE_H#include <string>#include <map>#include "istream"#include "Index.h"#include "Exception.h"#include "Production.h"/** * LL分析表 */class AnalyzeTable{public: /** * @brief 获取索引所对应的产生式 * @param index 索引 * @return 索引对应的产生式 */ Production getProduction (const Index& index ) const throw(ProductionNotExists); /** * @brief 添加索引所对应的产生式 * @param index 索引 * @param production 索引对应的产生式 */ void addProduction (const Index& index, const Production& production ) throw(ProductionAlreadyExists); private: typedef std::map<Index, Production> TableType; TableType table;};#endif // ANALYZETABLE_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -