tree-sitter/src/compiler/rules/rules.h

31 lines
793 B
C
Raw Normal View History

2013-11-07 13:24:01 -08:00
#ifndef __TreeSitter__rules__
#define __TreeSitter__rules__
#include "rule.h"
#include "blank.h"
#include "symbol.h"
#include "choice.h"
#include "seq.h"
#include "string.h"
#include "pattern.h"
#include "char.h"
2013-11-20 19:00:20 -08:00
#include "char_class.h"
2013-11-15 08:46:45 -08:00
#include "repeat.h"
2013-12-21 13:37:27 -08:00
#include "visitor.h"
namespace tree_sitter {
namespace rules {
rule_ptr blank();
rule_ptr character(char value);
rule_ptr char_class(CharClassType value);
rule_ptr choice(const std::initializer_list<rule_ptr> &rules);
rule_ptr pattern(const std::string &value);
rule_ptr repeat(const rule_ptr content);
rule_ptr seq(const std::initializer_list<rule_ptr> &rules);
rule_ptr str(const std::string &value);
rule_ptr sym(const std::string &name);
}
}
2013-11-05 22:15:19 -08:00
#endif