?? parse.cc
字號:
#include "parser.ih"rPredicate Parser::parse(std::string const &_msg){ Token tok; rPredicate pred = new Predicate(Predicate::type_list); tok.type = Token::none; // Initialize the lexer. initLex(_msg); while (true) { // lex the next token. tok = lex(); // LPARENT | END_OF_LINE if (tok.type == Token::lparent) { lexPushBack(tok); pred->push(parsePred()); } else if (tok.type == Token::end_of_line) { break; } else throw parser_error("parser error, expected '(' or END_OF_LINE"); } return pred;}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -