33 #ifndef CORE_CP_COMMANDPARSER_H_
34 #define CORE_CP_COMMANDPARSER_H_
38 #ifndef pfp_cpCommandParserBase_h_included
39 #include "NAMESPACE_HACK_BEGIN"
41 #include "CommandParserbase.h"
42 #include "NAMESPACE_HACK_END"
46 #include "CommandScanner.h"
48 #include "NAMESPACE_HACK_BEGIN"
53 class CommandParser:
public CommandParserBase {
55 CommandScanner d_scanner;
60 std::shared_ptr<Command> parse_line(std::string & s);
63 void returnCommand(Command *cmd);
64 std::shared_ptr<Command> returned_command;
67 void error(
char const *msg);
73 void executeAction(
int ruleNr);
75 int lookup(
bool recovery);
78 void exceptionHandler__(std::exception
const &exc);
83 #include "NAMESPACE_HACK_END"
85 #endif // CORE_CP_COMMANDPARSER_H_
Definition: CommandParser.h:50