openbox/util/epist/parser.hh
Scott Moynes 6d40002093 Big fat merge for epist.
This adds a config parser, chaining, and a tonne of other stuff.
Still need to fix up build system for the lex and yacc stuff.
2002-08-06 22:37:06 +00:00

33 lines
581 B
C++

#include <string>
#include "actions.hh"
#include "keytree.hh"
class parser {
public:
parser(keytree *);
~parser();
void parse(std::string);
void setKey(std::string key)
{ _key = key; }
void setArgument(std::string arg)
{ _arg = arg; }
void setAction(std::string);
void addModifier(std::string);
void endAction();
void startChain();
void setChainBinding();
void endChain();
private:
void reset();
keytree *_kt;
unsigned int _mask;
Action::ActionType _action;
std::string _key;
std::string _arg;
};