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

#include <iostream>
#include <string>

#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, const std::string& fname, void* extra);
};

#endif