ChaiScript/langkit/langkit_parser.hpp
2009-05-26 20:17:42 +00:00

18 lines
390 B
C++

// This file is distributed under the BSD License.
// See LICENSE.TXT for details.
#ifndef LANGKIT_PARSER_HPP_
#define LANGKIT_PARSER_HPP_
#include <boost/function.hpp>
#include "langkit_lexer.hpp"
typedef std::vector<Token>::iterator Token_Iterator;
struct Rule {
boost::function<Token_Iterator(Token_Iterator iter, Token_Iterator end)> rule;
};
#endif /* LANGKIT_PARSER_HPP_ */