Skip to content

Commit b73f232

Browse files
committed
Fix typo and incorrect use of "abstract" syntax tree.
(no need to be specific with syntax tree type)
1 parent 80d2dcd commit b73f232

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/design.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ These guides for Emacs tree-sitter development are also useful
1212

1313
In short:
1414
Tree-sitter is a tool that generates parser libraries for programming languages, and provides an API for interacting with those parsers.
15-
The generated parsers can create abstract syntax trees from source code text.
15+
The generated parsers can create syntax trees from source code text.
1616
The nodes of those trees are defined by the grammar.
1717
Emacs can use these generated parsers to provide major modes with things like syntax highlighting, indentation, navigation, structural editing, and many other things.
1818

@@ -25,7 +25,7 @@ Emacs can use these generated parsers to provide major modes with things like sy
2525
- Abstract Syntax Tree: A syntax tree with less important details removed. An AST may contain a node for a list, but not individual parentheses. Tree-sitter does not create Abstract Syntax Trees.
2626
- Syntax Node: A node in a syntax tree. It represents some subset of a source code text. Each node has a type, defined by the grammar used to produce it. Some common node types represent language constructs like strings, integers, operators.
2727
- Named Syntax Node: A node that can be identified by a name given to it in the tree-sitter Grammar. In clojure-ts-mode, `list_lit` is a named node for lists.
28-
- Anonymous Syntax Node: A node that cannot be identified by a name. In the Grammar these are identified by simple strings, not by complex Grammar rules. In clojure-ts-mode, `"("` and `")"` are anonymous nodes.n
28+
- Anonymous Syntax Node: A node that cannot be identified by a name. In the Grammar these are identified by simple strings, not by complex Grammar rules. In clojure-ts-mode, `"("` and `")"` are anonymous nodes.
2929
- Font Locking: What Emacs calls "Syntax Highlighting".
3030

3131
## tree-sitter-clojure

0 commit comments

Comments
 (0)