Commit graph

487 commits

Author SHA1 Message Date
Linda_pp d9365a8fd6
Add link to JSON parser in document 2022-05-04 00:01:02 +09:00
Max Brunsfeld 38d2cd15bd
Merge pull request #1667 from tree-sitter/dependabot/bundler/docs/nokogiri-1.13.3
Bump nokogiri from 1.11.4 to 1.13.3 in /docs
2022-02-26 16:56:14 -08:00
dependabot[bot] fa3e87479f
Bump nokogiri from 1.11.4 to 1.13.3 in /docs
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.11.4 to 1.13.3.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.11.4...v1.13.3)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-26 03:43:21 +00:00
Michael Davis 699629ecdd
add unit testing documentation for tags queries 2022-02-25 05:46:30 -06:00
Patrick Thomson 764c8c88ca last tweaks 2022-02-18 09:24:04 -05:00
Patrick Thomson 27019d1172 demonstrate that select-adjacent works 2022-02-17 18:28:09 -05:00
Patrick Thomson 65da86f16f Missing plural here. 2022-02-17 18:11:01 -05:00
Patrick Thomson 48748ee332 Typo. 2022-02-17 18:05:50 -05:00
Patrick Thomson e1ac2e2648 Better nomenclature. 2022-02-17 18:05:19 -05:00
Patrick Thomson 4c60217345 Flesh out output. 2022-02-17 17:43:14 -05:00
Patrick Thomson 69a5f77eab Describe how to use tree-sitter tags as well. 2022-02-17 17:34:15 -05:00
Patrick Thomson 1fbace136d Add examples. 2022-02-17 17:20:21 -05:00
Patrick Thomson 70077b8205 Incorporate @dcreager's excellent suggestions. 2022-02-17 14:00:34 -05:00
Patrick Thomson f41e13f5da Spacing and word choice. 2022-02-11 15:41:53 -05:00
Patrick Thomson 88822bd3fc Move this to its own page. 2022-02-11 15:25:50 -05:00
Patrick Thomson 302c8b5305 Move this inside the query section. 2022-02-11 11:25:11 -05:00
Patrick Thomson 8dfed40466 Describe naming conventions for syntax captures. 2022-02-11 11:17:18 -05:00
Max Brunsfeld 9df064c9fe
Merge pull request #1581 from tlaplus-community/get-codepoint-column
`get_column` now counts codepoints instead of bytes
2022-01-12 10:49:44 -08:00
Andrew Helwer 80c34d62ab Fixed rust build, updated docs 2022-01-07 10:36:25 -05:00
M Hickford 4c6175b70a
Add link to Protocol Buffers grammar 2022-01-02 21:18:12 +00:00
Max Brunsfeld 2032133f8a
Merge pull request #1532 from oxisto/patch-1
Added bindings for Java and Kotlin to `index.md`
2021-12-13 13:23:27 -08:00
Mackenzie Morgan 4238c6c7dc add link to in-development Elixir parser 2021-12-13 13:25:17 -05:00
Christian Banse 0a1dbdd340
Added bindings for Java and Kotlin to index.md 2021-12-11 13:26:06 +01:00
Max Brunsfeld 65746afeff playground: Make query error underlines render in safari 2021-11-22 16:04:45 -08:00
Max Brunsfeld 3ac53cb645 Add link to Lua bindings 2021-11-19 13:58:46 -08:00
Matt Massicotte af2c692711
Add link to swift bindings package 2021-11-17 11:30:32 -05:00
Max Brunsfeld 0288dd4acc
Merge pull request #1295 from nokome/master
docs(Using parsers): Fix spelling, remove unusual keyword
2021-10-05 14:15:23 -07:00
Max Brunsfeld ec87df2021
Merge pull request #1416 from Wilfred/patch-1
Add link to elisp parser
2021-10-05 14:14:13 -07:00
Wilfred Hughes 056a608991
Add link to elisp parser 2021-09-26 22:51:50 -07:00
Stephan Seitz 2f484a2bcb Add tree-sitter-cuda, tree-sitter-glsl, tree-sitter-commonlisp 2021-09-26 12:21:38 +02:00
Max Brunsfeld e7dcd2b7c4
Merge branch 'master' into m-novikov-add-parsers 2021-09-24 09:04:30 -07:00
Max Brunsfeld 2bee7c9b75 Update get_column docs
Fixes #1405
2021-09-22 13:53:42 -07:00
Andrew Hlynskyi 16470bc0b1 chore(cli): Rename all internal web_ui stuff to playground 2021-09-22 04:28:08 +03:00
dependabot[bot] 0801cd3870 chore(deps): bump addressable from 2.5.2 to 2.8.0 in /docs
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.5.2 to 2.8.0.
- [Release notes](https://github.com/sporkmonger/addressable/releases)
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sporkmonger/addressable/compare/addressable-2.5.2...addressable-2.8.0)

---
updated-dependencies:
- dependency-name: addressable
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-22 02:00:03 +03:00
Andrew Hlynskyi 28a121b532 chore(docs): Fix misprints 2021-09-22 00:24:36 +03:00
Mehmet Oguz Derin eca777f501
Add WGSL WebGPU Shading Language
This PR adds WebGPU Shading Language to the list of available grammars, the linked repository's grammar is periodically automatically extracted from the WGSL specification itself, which is actually extracted every single time where the specification gets a modification in itself to check the validity of both the syntax and the examples. Thank you very much for developing and maintaining tree-sitter, fantastic project!
2021-09-17 18:54:14 +03:00
Max Brunsfeld bd08fddc11
Merge pull request #1388 from jiyee/master
Add Objective-C language parser
2021-09-17 08:14:58 -07:00
Martin Jambon 8ec38a9b64 Add HCL (Terraform) and Hack to the list of supported languages 2021-09-16 13:34:59 -07:00
Martin Jambon b675587132 Add link to OCaml bindings to list and sort list alphabetically. 2021-09-16 13:19:05 -07:00
Jiyee Sheng 7e5781637c Add Objective-C language parser 2021-09-16 12:30:40 +08:00
rydesun c7f118ce55 Add Graphviz DOT parser 2021-08-29 20:21:17 +08:00
Andrew Hlynskyi c1849098f5 chore(docs): Fix getting started example, closes #891 2021-08-27 11:07:49 +03:00
Andrew Hlynskyi 92007dc9b5
Merge pull request #1354 from beyonddream/master
chore(docs): Fix broken links of research papers
2021-08-25 01:32:50 +03:00
beyonddream 3c59284df5 Fix broken links of research papers. 2021-08-22 04:07:49 -07:00
Nokome Bentley 12d3e1b898
docs(Using parsers): Fix spelling, remove unusual keyword 2021-07-26 11:01:55 +12:00
Niklas Mohrin 66cfc05d76
Fix highlighting typo on "creating parsers" site 2021-07-25 14:08:46 +02:00
Santos Gallegos 4adc2f5c88
Docs: document _ wildcard node
Closes https://github.com/tree-sitter/tree-sitter/issues/1253
2021-07-11 10:25:42 -05:00
Maksim Novikov dd435636cb
Add SQL parser 2021-07-04 10:10:33 +02:00
Douglas Creager 6ed42747a4
Merge pull request #1157 from dcreager/xdg-config
cli: Extract CLI configuration into separate crate
2021-06-10 15:39:45 -04:00
Douglas Creager d02636ff53 Update documentation with new config locations 2021-06-10 15:20:05 -04:00
Max Brunsfeld 4d9d7589f8
Merge pull request #1115 from tree-sitter/dependabot/bundler/docs/nokogiri-1.11.4
build(deps): bump nokogiri from 1.10.8 to 1.11.4 in /docs
2021-06-10 11:23:50 -07:00
Max Brunsfeld ac23797686
Merge pull request #1134 from ahlinc/fix/playground-tree-presentation
fix: Cut dangling closing bracket in the playground tree
2021-06-07 09:09:26 -07:00
Max Brunsfeld b303a488eb
Merge pull request #1145 from jhchabran/master
Update documentation on creating a parser: minor inconsitency on the generated files
2021-06-07 09:04:20 -07:00
Nikita Galaiko de3600dd75
docs: fix language ingection section link 2021-06-07 16:54:47 +02:00
Jean-Hadrien Chabran 2aa1578f6b Update generated files 2021-06-07 14:33:32 +02:00
Andrew Hlynskyi 4c5459814e Cut dangling closing bracket in the playground tree 2021-05-31 14:12:22 +03:00
Jiyee Sheng 6ceecb3928 FIX: node-tree-sitter url 2021-05-24 16:28:08 +08:00
dependabot[bot] b7e658138b
build(deps): bump nokogiri from 1.10.8 to 1.11.4 in /docs
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.10.8 to 1.11.4.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.10.8...v1.11.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-19 07:30:50 +00:00
breandan 3d8f666581
Add link to Kotlin parser 2021-05-16 21:38:05 -04:00
Camden Cheek fbe72f2f22
Add link to Dockerfile parser 2021-05-11 08:52:32 -06:00
Alexandre A. Muller 0970b88a9e
Add Make parser
Add make parser and also change Fennel list from `-` to `*` (that created a list inside a list).
2021-04-30 19:06:10 +00:00
Camden Cheek a0cec948c5
Add go mod grammar 2021-04-28 08:18:19 -06:00
ganezdragon 91bd731094 adding perl parser under development section 2021-03-28 18:35:11 +05:30
Sjoerd Langkemper 103d37adc4 Fix typo: lanugage -> language 2021-03-23 16:42:07 +01:00
BonaBeavis f96612c7cd
sparql and turtle parsers are stable 2021-03-17 23:11:11 +01:00
Max Brunsfeld a7ae7767b4 Add docs for negated field patterns 2021-03-12 15:12:24 -08:00
Max Brunsfeld b11e4ff1dd
Merge pull request #834 from ostera/patch-1
Add Erlang and S-exp to available parser list
2021-03-11 09:28:33 -08:00
Max Brunsfeld b1c5813238
Merge pull request #842 from BonaBeavis/patch-1
Add Turtle parser
2021-03-11 09:28:00 -08:00
Max Brunsfeld e51e6ba20f
Merge pull request #875 from nilshelmig/patch-1
Adding link to sourcepawn grammar
2021-03-11 09:26:44 -08:00
Himujjal Upadhyaya 225e15cb9f
Updated docs for tree-sitter-svelte (#936)
* updated docs & tests for tree-sitter-svelte

* added svelte to official docs

* final commit before adding svelte to the docs
2021-02-24 09:35:42 -08:00
François Wouts b7f99d45f0
Revert back to 2.5.0 to minimise changes 2021-02-24 07:56:26 +11:00
François Wouts 86d4be4ea7
Link to Ruby 3 docs instead 2021-02-24 07:55:48 +11:00
François Wouts 9437973b3e
Fix broken link to Ruby's Percent Strings
The current link fails with a 404.
2021-02-24 07:52:24 +11:00
Razzeee ca760c4d54
Update Elm link
I've moved the repo from my personal page to the page ouf our organization
2021-02-01 02:32:16 +01:00
Nils Helmig a98359e4b6
Adding sourcepawn parser 2021-01-07 00:25:36 +01:00
Leandro Ostera da58afb0b0
Merge branch 'master' into patch-1 2020-12-13 00:28:54 +01:00
BonaBeavis f9583eb43a
Add Turtle parser 2020-12-09 15:07:02 +01:00
Jim Hester e5ef2f2aa3
Add link to R tree sitter grammar 2020-12-07 09:05:03 -05:00
Leandro Ostera 7891f2f1e2
Add Erlang and S-exp to available parser list 2020-12-05 17:44:19 +01:00
BonaBeavis f28334a476
Add SPARQL parser to docs 2020-11-20 11:42:33 +01:00
Max Brunsfeld 29dbc79402
Merge pull request #785 from alemuller/patch-1
add link to VHDL parser
2020-11-05 09:52:09 -08:00
Max Brunsfeld d12b874a48
Merge pull request #735 from Vehmloewff/patch-1
Add documentation for `token.immediate`
2020-11-03 11:55:12 -08:00
Alexandre A. Muller bcd48e3b94
add link to VHDL parser 2020-10-29 19:08:55 +00:00
Max Brunsfeld 9e65d18ec6
Merge pull request #721 from TravonteD/master
Add link to fennel parser
2020-10-29 12:01:38 -07:00
Patrick Thomson 1749a5d672 Shorter wording. 2020-10-23 15:11:53 -04:00
Patrick Thomson 4d8cdc2f36
Update docs/section-2-using-parsers.md
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2020-10-23 15:11:23 -04:00
Patrick Thomson b42b873564
Update docs/section-2-using-parsers.md
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2020-10-23 15:11:17 -04:00
Patrick Thomson b5d20f07b6 Document query anchor operator (#771)
This was taken more or less directly from @maxbrunsfeld's PR comments
in https://github.com/tree-sitter/tree-sitter/pull/549. 🎩
2020-10-23 14:34:56 -04:00
Max Brunsfeld a6d3a5736d
Merge pull request #713 from stsewd/document-new-syntax
Document alternations and wildcard nodes
2020-10-12 12:32:34 -07:00
Patrick Thomson 9f9f2a52b7 Docs. 2020-09-29 12:59:05 -04:00
Elijah Mooring 43a3f1bbe0
Update section-3-creating-parsers.md 2020-09-19 11:19:26 -05:00
Max Brunsfeld f10a8448ed
Merge pull request #723 from tree-sitter/comprehensive-wasm-help
Conditionally handle the presence/absence of build-wasm files.
2020-09-15 11:54:57 -07:00
Patrick Thomson 71f5908806 Max's suggestions. 2020-09-15 13:08:03 -04:00
Patrick Thomson 85cdf3dc49 adjust docs 2020-09-02 15:37:21 -04:00
TravonteD 45eab0ab24 add link to Fennel parser 2020-09-01 22:34:45 -04:00
Max Brunsfeld 9daec9cb22 Tweak impossible pattern error messages 2020-08-20 13:35:11 -07:00
Santos Gallegos b2e4d3f54f Document alternations and wildcard nodes
These were added in https://github.com/tree-sitter/tree-sitter/pull/615
and https://github.com/tree-sitter/tree-sitter/pull/630

Closes https://github.com/tree-sitter/tree-sitter/issues/704
2020-08-15 13:08:46 -05:00
Max Brunsfeld 4ec7d80968 Mention rule order as the fallback criteria in docs
Fixes #702
2020-07-29 10:04:21 -07:00
Santos Gallegos d22240591c Docs: document the set! predicate
I was looking for something like this,
I searched the documentation,
but I found it in https://github.com/tree-sitter/tree-sitter-javascript/blob/master/queries/injections.scm#L15
2020-07-27 17:38:32 -05:00
Max Brunsfeld e9ea8192a3 Mention node version >= 6 in docs
Fixes #677
2020-07-09 09:11:38 -07:00
Max Brunsfeld bfeec63d60 Remove docs site banner for now 2020-06-18 07:12:33 -07:00
Santos Gallegos 9b9329cb6c
Fix some typos (#639) 2020-06-06 15:17:38 -07:00
Max Brunsfeld 35cc10768b Add BLM banner 2020-06-01 09:32:59 -07:00
Mohamed Al-Fahim 67cd6b3d97
Grammar fix (#631) 2020-05-30 10:57:44 -07:00
Max Brunsfeld e8e80b1cf1 docs: Use new predicate syntax in highlighting query examples 2020-05-19 16:26:04 -07:00
Max Brunsfeld 61814b468d Remove build-lib script, recommend make 2020-05-12 16:28:26 -07:00
Max Brunsfeld f38f5d1d22 Tweak readmes 2020-05-12 16:16:48 -07:00
Max Brunsfeld f6f96f3503 Document the new query syntax 2020-05-11 14:24:00 -07:00
Max Brunsfeld a04d688d38
docs: Add a link to tree-sitter-wasm
Closes #605
2020-05-06 09:34:23 -07:00
Danny Mösch 4c0fa297d8
Fix typos in docu section about highlighting (#591) 2020-04-07 13:27:30 -07:00
Ronan Cherrueau ⚓ b65582797a
Fix the Getting Started example in docs (#588)
Running the first example of the Getting Started failed with:

  main: Assertion `strcmp(ts_node_type(root_node), "value") == 0' failed.

The cause is the json parser that renamed the entry rule from `value` to
`document` in commit tree-sitter/tree-sitter-json@1e4abcc. This commit
update the example in docs to fix the assert.
2020-04-03 11:35:31 -07:00
Alexander Eyers-Taylor 5670dd6705
Add QL to the playground (#558) 2020-03-03 13:46:20 -08:00
Max Brunsfeld f2e9e3b3f2 docs: Link to semantic dir instead of codegen PR 2020-03-02 09:38:25 -08:00
dependabot[bot] 8c95c7648b
build(deps): bump nokogiri from 1.8.2 to 1.10.8 in /docs
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.8.2 to 1.10.8.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.8.2...v1.10.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-02-25 09:57:14 +00:00
Max Brunsfeld 3cd05a3d0c Link to Semantic in node-types docs 2020-02-24 11:21:05 -08:00
Max Brunsfeld f1e4104d47 Document supertypes and the node-types file
References #542
References #524
Closes #393
2020-02-24 11:12:42 -08:00
Max Brunsfeld 8d26da7b03 Add highlight subcommand to docs section w/ all subcommands 2020-02-21 13:11:40 -08:00
Max Brunsfeld a76a232485 Add unit testing docs 2020-02-21 12:58:41 -08:00
Max Brunsfeld 709ddfebe9 docs: Add explanation of syntax highlighting configuration for CLI 2020-02-21 11:39:27 -08:00
Max Brunsfeld 1ce42a04a7 Add docs about injection query properties 2020-02-20 15:34:35 -08:00
Max Brunsfeld 17071267e3 docs: Start work on docs for injection queries 2020-02-20 14:38:37 -08:00
Max Brunsfeld cf80f094ac docs: Expand local variable highlighting section 2020-02-20 09:35:46 -08:00
Max Brunsfeld 92f060303c docs: First draft of highlight query section, start local var section 2020-02-20 09:35:46 -08:00
Max Brunsfeld 2a8860542c Add intro to syntax highlighting docs 2020-02-20 09:35:46 -08:00
Max Brunsfeld 579b8e8d28 Rename files to make room for syntax highlighting section 2020-02-20 09:35:46 -08:00
Max Brunsfeld ca73cba5f0 Make underline-on-hover work for spans within links
Refs #535
2020-02-12 16:06:50 -08:00
Max Brunsfeld 1f53b7aba8
Merge pull request #536 from kramred/docs/external_link_icon_CC0
Modify styles to show icon for external links
2020-02-12 11:59:29 -08:00
Mark Schmitz 23b88b6ac4 Modify styles to show icon for external links
Icon is CC0, copyright by https://github.com/kramred
2020-02-12 19:40:43 +00:00
Mark Schmitz 3dafb373a8 Add hyperlink to github repo below img of tree
in sidebar, as suggested in https://github.com/tree-sitter/tree-sitter/issues/508
2020-02-12 16:20:03 +00:00
Max Brunsfeld 70e2a2c025 Add PHP parser to web playground 2020-01-17 13:30:02 -08:00
Max Brunsfeld 82a8b15714 docs: Add C# parser to the playground 2019-12-02 14:00:26 -08:00
Max Brunsfeld 7ee65222d3 docs: Consider C# to be fairly complete 2019-12-02 13:54:24 -08:00
Mark Schmitz 3fbe0be6e2
Fix small typo in docs 2019-12-02 13:05:41 +00:00
akiyosi 1742f32fcc Fix link to contributing docs 2019-11-28 22:07:32 +09:00
Max Brunsfeld 079aa26a99 Link to docs.rs from docs site 2019-11-08 14:31:24 -08:00
Max Brunsfeld a506ceec3f Link to contributing docs from installation section of docs
Refs #478
2019-11-04 12:50:43 -08:00
Max Brunsfeld 5a3a672e30 Expand on query docs 2019-10-30 10:26:10 -07:00
Max Brunsfeld d5dc4bbcaa Fix some errors in new query docs 2019-10-28 17:32:10 -07:00
Max Brunsfeld 6146c39b0a Add information about queries on the docs site 2019-10-28 17:19:57 -07:00
Matthew Krupcale 5ae89f5133 docs: fix lookahead type (#462)
The `TSLexer` struct uses signed integer `int32_t` for the `lookahead` Unicode code point.

 * docs/section-3-creating-parsers.md: fix `lookahead` type
2019-10-14 12:08:24 -07:00
Matthew Krupcale ee9a3c0ebb lib: remove utf8proc dependency (#436)
* Remove dependency on utf8proc

This removes the only external dependency on utf8proc for UTF-8 decoding. It does so by implementing its own UTF-8 decoder. This decoder is both faster and has a simpler API.

 * .gitmodules: remove utf8proc submodule
 * docs/section-2-using-parsers.md: remove requirement for utf8proc submodule
 * docs/section-6-contributing.md: likewise
 * lib/Cargo.toml: remove utf8proc subdirectory package include
 * lib/README.md: remove utf8proc subdirectory description
 * lib/binding_rust/build.rs: remove utf8proc compiler include directory
 * lib/src/lexer.c: remove utf8proc dependencies and types
 * lib/src/lib.c: remove utf8proc dependency
 * lib/src/unicode.h: define types for Unicode decoders
 * lib/src/utf16.{c,h}: implement more readable UTF-16 decoder
 * lib/src/utf8.{c,h}: implement fast UTF-8 decoder
 * lib/utf8proc: remove utf8proc submodule directory
 * script/build-lib: remove utf8proc compiler include directory
 * script/build-wasm: likewise

* Optimize ts_lexer__get_lookahead.

Try to favor non-failure code path and assign lookahead values directly to lexer

 * lib/src/lexer.c: optimize for non-failure code path

* Fix some compiler errors

 * lib/src/lexer.c: cast from signed to unsigned for decode_next result
 * lib/src/utf16.c: fix non-constant initializers for older compilers

* Remove some missed remnants of utf8proc

 * docs/section-2-using-parsers.md: only two include paths necessary now
 * lib/src/lib.c: no need to define UTF8PROC_STATIC

* Use ICU's utf8 and utf16 decoding routines

* Remove unnecessary casts when calling icu macros

* Check buffer length before attempting to decode a unicode character

* Use new unicode function when parsing Queries

Co-Authored-By: Matthew Krupcale <mkrupcale@matthewkrupcale.com>

* Mark libicu files as vendored for GitHub's stats
2019-10-14 11:18:39 -07:00
Rob Rix 20bb99249b Fix a typo in the docs. (#457) 2019-10-04 14:49:19 -07:00
dependabot[bot] 10c6144e83 Bump rubyzip from 1.2.1 to 2.0.0 in /docs (#459)
Bumps [rubyzip](https://github.com/rubyzip/rubyzip) from 1.2.1 to 2.0.0.
- [Release notes](https://github.com/rubyzip/rubyzip/releases)
- [Changelog](https://github.com/rubyzip/rubyzip/blob/master/Changelog.md)
- [Commits](https://github.com/rubyzip/rubyzip/compare/v1.2.1...v2.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-10-04 14:48:53 -07:00
Ika 825a816ee7 docs: add Vue parser 2019-10-04 20:38:01 +08:00
Ika d54fe98334 docs: add Markdown parser 2019-09-30 20:10:37 +08:00
Max Brunsfeld 9ce3a53427 Precompute tree edits in playground script 2019-09-23 17:01:35 -07:00
Max Brunsfeld 10fb9b0e20 Fix playground HTML, tweak playground colors 2019-09-18 18:03:15 -07:00
Max Brunsfeld a1fec71b19 Tweak QueryCursor to allow iterating either matches or captures
For syntax highlighting, we want to iterate over all of the captures in 
order, and don't care about grouping the captures by pattern.
2019-09-13 15:19:04 -07:00
Max Brunsfeld f08767c482 Add tree query editor to web UI and playground 2019-09-12 14:07:17 -07:00
Max Brunsfeld 0528ad5f58 playground: Persist state across reloads 2019-09-12 08:49:19 -07:00
Max Brunsfeld 4151a428ec docs: Add link to WIP swift grammar 2019-09-06 09:18:30 -07:00
Max Brunsfeld f9a3998029 docs: Start adding info about field names 2019-09-05 15:43:10 -07:00
Max Brunsfeld 3b10999808 Add TOML and YAML to the web playground 2019-08-31 12:29:52 -07:00
Ika 2cf2293b1f
docs: add YAML/TOML parser 2019-09-01 02:30:11 +08:00
Max Brunsfeld 5882bcf531 Add TypeScript parser to the playground 2019-08-30 22:20:53 -07:00
Max Brunsfeld fd80d60ae8 web playground: don't include editor.getValue() call in parse time 2019-08-30 21:06:57 -07:00
Simon Repp 8657054e4b Add tree-sitter-eno to available completed parsers (#413) 2019-08-05 14:19:29 -07:00
zimbatm 15629f1231 index.md: add the tree-sitter-nix parser (#403) 2019-08-01 15:34:05 -07:00
Simon Repp ee253e340b Mention differing alias behavior based on argument types in the docs (#405)
* Fix broken link to named-vs-anonymous section in unit tests section

* Mention differing alias behavior based on argument types in the docs
2019-08-01 15:30:50 -07:00
Max Brunsfeld 71275b34f0 Show field names in wasm playground 2019-07-10 14:43:05 -05:00
Max Brunsfeld eb0d9af577 docs: Declare Java parser to be fairly complete 2019-07-09 16:50:18 -05:00
Max Brunsfeld fcd8913233 Add link to the Contributor Covenant 2019-06-20 15:27:56 -07:00
Max Brunsfeld aec2ca2da7 Make the playground the last page on the docs site 2019-06-20 15:27:35 -07:00
Max Brunsfeld b2e3105acb Add verilog and systemrdl grammars to the docs 2019-06-13 11:51:53 -07:00
francisfuzz ec7def2e62
s/Ucsing/Using 2019-05-31 13:06:39 -07:00
Max Brunsfeld 7530b0f77a Add link to lua parser in the docs 2019-05-31 09:20:49 -07:00
Max Brunsfeld 85fa31d972 Mention wasm tests in contributing doc 2019-05-31 09:18:34 -07:00
Razzeee 53b30af003
Add elm tree sitter 2019-05-31 13:25:14 +02:00
Max Brunsfeld 2f06abf984 Start work on contributing guide 2019-05-30 17:53:20 -07:00
Chris Charles 9ce9a53298 Reorder objects in documentation for consistency
The documentation lists four types of objects, the C names for them,
and a summary for each. These are now shown in the same order.
2019-05-21 07:52:23 -04:00
Max Brunsfeld a1ed12f4f4 Start work on web UI command 2019-05-13 21:51:17 -07:00
Andrew Craig bcc823984e Update doc example program file locations
Update doc example program compilation instructions to be consistent
with directory structure.
2019-05-08 21:03:16 +09:00
Max Brunsfeld 3fc459a84b Reorganize language bindings
* Move rust binding: lib/binding -> lib/binding_rust
* Move wasm bindinig: lib/web -> lib/binding_web
* Add wasm readme
2019-05-07 10:41:49 -07:00
Max Brunsfeld a3ceb8f3a5
Add link to Strange Loop talk in main docs page 2019-05-07 09:23:52 -07:00
Max Brunsfeld a0390218a8 Give playground page a more specific title 2019-05-01 14:11:58 -07:00
Max Brunsfeld 73e4db41b0 Render syntax tree efficiently in docs playground 2019-04-30 11:55:30 -07:00
Max Brunsfeld 73e1512555 Fix playground script URL in docs site 2019-04-27 17:54:14 -07:00
Max Brunsfeld 4febbc43f6 In docs playground, scroll tree whenever cursor moves 2019-04-27 17:32:07 -07:00
Max Brunsfeld e39d69dfa7 Add a playground to the docs site 2019-04-26 13:36:28 -07:00
Max Brunsfeld 5035e194ff Merge branch 'master' into node-fields 2019-03-26 11:58:21 -07:00
Justin Woo 6f804fd2e2 fix example snippet in creating parsers docs 2019-03-24 14:37:43 +02:00
Max Brunsfeld d51cd86a3a Update available bindings section of docs 2019-03-22 14:20:35 -07:00
Jacob Mitchell c8d040ca26 Use 1-indexed rows in CLI and log output (resolves #287) 2019-03-14 22:21:19 -07:00
Max Brunsfeld f52271352b Merge branch 'master' into node-fields 2019-03-05 08:08:05 -08:00
Max Brunsfeld 92e9f984ed Fix small docs errors 2019-02-22 09:44:25 -08:00
Max Brunsfeld 190b219be5 Document external scanners
Fixes #281
2019-02-22 09:35:29 -08:00
Max Brunsfeld 2249ddb687 docs: Adjust intro, remove mentions of node-gyp, npm install 2019-02-21 16:41:52 -08:00
Max Brunsfeld af44147157 docs: Fix references to runtime.h, libruntime.a 2019-02-21 16:41:22 -08:00
Max Brunsfeld 8edb6927d0 Update docs after Rust conversion 2019-02-05 11:34:01 -08:00
Max Brunsfeld 23837adac1 Fix editing documentation, add note about ts_node_edit
Fixes #242
2018-11-27 11:31:22 -08:00
Max Brunsfeld 47918070f6 Add a single-source file way of building the runtime library 2018-11-13 15:36:21 -08:00
Tobias Bieniek 1602e9f06a
docs: Add missing ) to test code 2018-11-02 14:33:12 +01:00
Max Brunsfeld dc6d659fcf
Add CSS parser to the list in the docs 2018-10-30 09:36:45 -07:00
vzvu3k6k 87448aa534 Fix assetion of an example program
test-json-parser fails:
    test-json-parser.c:42: int main():
    Assertion `ts_node_child_count(array_node) == 4' failed.

`array_node` has five nodes: ([), (number), (,), (null), (]).
2018-10-25 02:20:10 +09:00
Max Brunsfeld 25797cad5f Add favicon to docs site 2018-09-12 20:29:24 -07:00
Max Brunsfeld 9e13912db3 Tweak docs for multi-language documents 2018-09-12 20:11:35 -07:00
Max Brunsfeld 1878b425de Add documentation about included ranges 2018-09-12 17:54:52 -07:00
Max Brunsfeld 7661d08127 Flesh out keyword extraction discussion 2018-09-09 18:47:31 -07:00
Max Brunsfeld 07065e3580 Mention lexical conflict resolution w/ strings vs regexes 2018-09-09 18:47:31 -07:00
Max Brunsfeld a4383d17d1 Reference named/anonymous node section when explaining test s-exps 2018-09-09 18:47:31 -07:00
Max Brunsfeld d6cc98c644 Remove leading $ from shell code blocks 2018-09-09 18:47:31 -07:00
Max Brunsfeld b0fb31dc5f Recommend using npm init/npm install to generate the package.json 2018-09-09 18:47:30 -07:00
Max Brunsfeld de0e8a39a2 Expand using parsers section of the docs 2018-08-14 12:13:10 -07:00
Max Brunsfeld 87ad0fb9c2 Expand using parsers document 2018-08-13 18:04:10 -07:00
Orhan Toy 9795aa16c4 [ci skip] Fix typo (#189) 2018-07-28 16:14:59 -07:00
Jamie 2384234aea
Fix rules docs 2018-07-20 16:58:50 -07:00
Max Brunsfeld 308016b776 Clarify runtime vs parser generator in README
Fixes #182
2018-07-10 14:09:22 -07:00
Max Brunsfeld 531f2f48b1 Update list of available parsers 2018-07-05 16:45:27 -07:00
Max Brunsfeld be81989de2 Improve implementation page of docs 2018-06-20 09:49:23 -07:00
Max Brunsfeld 196d7f1355 Update sentence about TSInput in docs 2018-06-19 11:15:01 -07:00
Max Brunsfeld 2a2e5032d4 Fix links in docs 2018-06-14 15:27:28 -07:00
Max Brunsfeld f42cb877f3 Improve docs for lexing, keyword handling
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-06-14 13:18:48 -07:00
Max Brunsfeld 587d1a740a Docs - give motivation and code example for keyword optimization 2018-06-14 10:29:03 -07:00
Max Brunsfeld 121dd15bda Docs - don't create TOC entries for h4 headers 2018-06-14 10:27:31 -07:00
Max Brunsfeld e17cd42e47 Perform keyword optimization using explicitly selected word token
rather than trying to infer the word token automatically.

Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-06-14 09:35:54 -07:00
Max Brunsfeld 0e487011c0 Add agda parser to the list on the docs site 🙇 @banacorn 2018-06-13 10:03:22 -07:00
Max Brunsfeld 0895ca237d Merge branch 'master' into pike-doc-extras-default 2018-06-13 09:42:22 -07:00
Max Brunsfeld 0aef70028a Dismiss docs sidebar when scrolling left on mobile 2018-06-12 19:59:30 -07:00
Max Brunsfeld 9eab5a29d9 Make docs hamburger button partially transparent 2018-06-12 18:06:07 -07:00
Max Brunsfeld 3a631616c0 Include project name in all docs page titles 2018-06-12 18:03:54 -07:00
Max Brunsfeld 10dcf050d6 Tweak docs styling, add serve-docs script 2018-06-12 17:58:38 -07:00
Max Brunsfeld 5b18fe672b Link to the documentation site from the README 2018-06-12 17:43:55 -07:00
Max Brunsfeld a7ffbd022f Make docs page readable on mobile 2018-06-12 17:43:55 -07:00
Max Brunsfeld d1665da21c Add docs 2018-06-11 19:17:10 -07:00
Max Brunsfeld 7ad50f2731 Start fleshing out docs site 2018-06-10 14:44:33 -07:00
Axel Hecht fb5c79aa32 make default extras explicit in docs 2018-04-04 10:59:13 +02:00
Yudai NAKATA b9a1993bc5 Suggest the use of devDependencies in a parser
Fix #146. [ci skip]
2018-03-17 17:11:40 +09:00
Ayman Nadeem 94815a703b
small unit test protip 2018-03-14 15:07:09 -07:00
Max Brunsfeld daf2c01d8b Add docs section about hidden rules 2018-03-05 09:35:52 -08:00
Max Brunsfeld fd77bf49a3 Add explanation of alias function in parsers doc 2018-03-02 11:09:53 -08:00
Max Brunsfeld dbecd9521f Add table of contents to docs pages 2018-02-26 17:42:42 -08:00
Max Brunsfeld b357ecd9b8 Describe DSL, precedence in parsers doc
[ci skip]
2018-02-26 13:55:13 -08:00
Max Brunsfeld 70cd827f3c Talk about tree-sitter generate command in parsers doc
[ci skip]
2018-02-26 11:37:22 -08:00
Max Brunsfeld a8d198f77c Expand the creating-parsers document
[ci skip]
2018-02-26 11:19:45 -08:00
Max Brunsfeld a7d49b4d98 Fix wording in creating-parsers doc 2018-02-26 00:43:34 -08:00
Max Brunsfeld e3e7c8ed9d Start work on grammar writing doc
[ci skip]
2018-02-26 00:38:54 -08:00
Max Brunsfeld a2aa64ec97 Start work on github pages site
[ci skip]
2018-02-24 21:39:33 -08:00