Commit graph

104 commits

Author SHA1 Message Date
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