Working up parser combinators

This commit is contained in:
Jonathan Turner
2009-05-26 20:17:42 +00:00
parent 8138b19390
commit 7f628d9130
5 changed files with 80 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
// 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_ */