summaryrefslogtreecommitdiff
path: root/decoder/rule_lexer.h
blob: 976ea02b1c47de5af60018e9a4033fd762bd4564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef _RULE_LEXER_H_
#define _RULE_LEXER_H_

#include <iostream>

#include "trule.h"

struct RuleLexer {
  typedef void (*RuleCallback)(const TRulePtr& new_rule, const unsigned int ctf_level, const TRulePtr& coarse_rule, void* extra);
  static void ReadRules(std::istream* in, RuleCallback func, void* extra);
};

#endif