summaryrefslogtreecommitdiff
path: root/decoder/rule_lexer.h
blob: e5db40181cc4ceb21becbc862617492f679f1f12 (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, void* extra);
  static void ReadRules(std::istream* in, RuleCallback func, void* extra);
};

#endif