production.cpp

来自「LL1通用语法分析器」· C++ 代码 · 共 58 行

CPP
58
字号
/************************************************************************                        Copyright IBMTC Written by Xinxi Wang**************************************************************************/#include "Production.h"Production::Production(){}Production::Production(const Variable& l, const Pattern& r): lhs(l), rhs(r){}Production::Production(const Production& p){    lhs = p.lhs;    rhs = p.rhs;}/** * @return Variable */Variable Production::getLhs ( ) const {    return lhs;}/** * @return Pattern */Pattern Production::getRhs ( ) const {    return rhs;}/** * @param  l */void Production::setLhs (const Variable& l ){    lhs = l;}/** * @param  r */void Production::setRhs (const Pattern& r ){    rhs = r;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?