Sha256: fd5e491f6fcbec5fce1d2e683ae8505df5d33d0e44a7c32b21cb649a3c23947c

Contents?: true

Size: 534 Bytes

Versions: 1

Compression:

Stored size: 534 Bytes

Contents

#ifndef COMPILER_RULES_PATTERN_H_
#define COMPILER_RULES_PATTERN_H_

#include <string>
#include "compiler/rule.h"

namespace tree_sitter {
namespace rules {

class Pattern : public Rule {
 public:
  explicit Pattern(const std::string &string);

  bool operator==(const Rule &other) const;
  size_t hash_code() const;
  rule_ptr copy() const;
  std::string to_string() const;
  void accept(Visitor *visitor) const;

  const std::string value;
};

}  // namespace rules
}  // namespace tree_sitter

#endif  // COMPILER_RULES_PATTERN_H_

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/src/compiler/rules/pattern.h