From d73534e97d28747aa689a081834d8a366d040b65 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 31 Jan 2017 11:41:46 -0800 Subject: [PATCH] Update language function name in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 472827a8..15def40e 100644 --- a/README.md +++ b/README.md @@ -176,11 +176,11 @@ tokens, like `(` and `+`. This is useful when analyzing the meaning of a documen #include "tree_sitter/runtime.h" // Declare the language function that was generated from your grammar. -TSLanguage *ts_language_arithmetic(); +TSLanguage *tree_sitter_arithmetic(); int main() { TSDocument *document = ts_document_new(); - ts_document_set_language(document, ts_language_arithmetic()); + ts_document_set_language(document, tree_sitter_arithmetic()); ts_document_set_input_string(document, "a + b * 5"); ts_document_parse(document);