20 lines
366 B
C
20 lines
366 B
C
|
|
#ifndef COMPILER_GRAMMAR_JSON_H_
|
||
|
|
#define COMPILER_GRAMMAR_JSON_H_
|
||
|
|
|
||
|
|
#include <string>
|
||
|
|
#include "tree_sitter/compiler.h"
|
||
|
|
|
||
|
|
namespace tree_sitter {
|
||
|
|
|
||
|
|
struct ParseGrammarResult {
|
||
|
|
std::string name;
|
||
|
|
Grammar grammar;
|
||
|
|
std::string error_message;
|
||
|
|
};
|
||
|
|
|
||
|
|
ParseGrammarResult parse_grammar(const std::string &);
|
||
|
|
|
||
|
|
} // namespace tree_sitter
|
||
|
|
|
||
|
|
#endif // COMPILER_GRAMMAR_JSON_H_
|