summaryrefslogtreecommitdiff
path: root/decoder/rule_lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/rule_lexer.h')
-rw-r--r--decoder/rule_lexer.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/decoder/rule_lexer.h b/decoder/rule_lexer.h
new file mode 100644
index 00000000..e5db4018
--- /dev/null
+++ b/decoder/rule_lexer.h
@@ -0,0 +1,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