Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit af5c06b

Browse files
authored
Merge pull request #124 from github/shiftkey-patch-1
remove stray hyphen
2 parents c97f358 + 1e57b63 commit af5c06b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/why-tree-sitter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To serve these goals, the following options were considered alongside `tree-sitt
2626
5. **Performance is decoupled from specific algorithm.** Similarly, grammar specifications are intimately coupled to performance characteristics using whatever algorithms will support them; a grammar which parses very efficiently with one algorithm may be a worst case for another.
2727
6. **There isn’t a universally accepted format for grammar specification.** BNF, and EBNF, are under-specified, and often unsupported; useful only for informal specification to humans, and not for formal specification to machines.
2828
7. **Language specifications are complex.** Some languages’ grammar specs turn out to be complex, for example [Java's language specification](https://docs.oracle.com/javase/specs/jls/se9/html/index.html). Similarly problematic is [Swift's spec](https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html), described by @robrix as "a subtle and intricate work of fiction".
29-
8. **Open source.** By using tree-sitterwe can lean on open source contributors to do grammar development work.
29+
8. **Open source.** By using tree-sitter we can lean on open source contributors to do grammar development work.
3030
9. **Low learning curve.** Writing grammars in JavaScript (as opposed to some custom notation/language) is quite powerful.
3131
10. **Multiple algorithms for handling ambiguity.** Precedence annotations at compile time, GLR at runtime.
3232
11. **External scanner support.** In case you need to parse a context free grammar. An example of an external scanner is in [Ruby's language support](https://github.com/tree-sitter/tree-sitter-ruby/blob/master/src/scanner.cc).

0 commit comments

Comments
 (0)