Working up parser combinators
This commit is contained in:
17
langkit/langkit_parser.hpp
Normal file
17
langkit/langkit_parser.hpp
Normal 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_ */
|
Reference in New Issue
Block a user