123456789101112131415161718192021 |
- #ifndef RUBY_PARSER_STATE_STACK_HH
- #define RUBY_PARSER_STATE_STACK_HH
- #include <vector>
- #include <memory>
- namespace ruby_parser {
- class state_stack {
- std::vector<bool> stack;
- public:
- void push(bool state);
- bool pop();
- void lexpop();
- void clear();
- bool active() const;
- };
- }
- #endif
|