[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tree-sitter api
From: |
Yuan Fu |
Subject: |
Re: Tree-sitter api |
Date: |
Tue, 21 Sep 2021 15:20:36 -0700 |
> On Sep 20, 2021, at 12:09 PM, John Yates <john@yates-sheets.org> wrote:
>
> Maybe:
>
> Anonymous nodes are usually tokens composed of
> punctuation characters like quote @samp{"} and
> auto-increment @samp{++}, or distinguished identifiers
> with fixed spellings used as keywords, like @code{return}.
>
> /John
Thanks, John and Eli. I modified it to
Names like @code{root}, @code{expression}, @code{number},
@code{operator} are nodes' @dfn{type}. However, not all nodes in a
syntax tree have a type. Nodes that don't are @dfn{anonymous nodes},
and nodes with a type are @dfn{named nodes}. Anonymous nodes are
tokens with fixed spellings, including punctuation characters like
bracket @samp{]}, and keywords like @code{return}.
Yuan
- Re: Tree-sitter api, (continued)
- Re: Tree-sitter api, Eli Zaretskii, 2021/09/17
- Re: Tree-sitter api, Yuan Fu, 2021/09/17
- Re: Tree-sitter api, Eli Zaretskii, 2021/09/17
- Re: Tree-sitter api, Yuan Fu, 2021/09/17
- Re: Tree-sitter api, Tuấn-Anh Nguyễn, 2021/09/17
- Re: Tree-sitter api, Yuan Fu, 2021/09/18
- Re: Tree-sitter api, Stephen Leake, 2021/09/18
- Re: Tree-sitter api, Yuan Fu, 2021/09/20
- Re: Tree-sitter api, Eli Zaretskii, 2021/09/20
- Re: Tree-sitter api, John Yates, 2021/09/20
- Re: Tree-sitter api,
Yuan Fu <=
- Re: Tree-sitter api, Yuan Fu, 2021/09/27
- Re: Tree-sitter api, Eli Zaretskii, 2021/09/27
- Re: Tree-sitter api, Stefan Monnier, 2021/09/27
- Re: Tree-sitter api, Yuan Fu, 2021/09/28
- Re: Tree-sitter api, Eli Zaretskii, 2021/09/28
- Re: Tree-sitter api, Yuan Fu, 2021/09/28
- Re: Tree-sitter api, Eli Zaretskii, 2021/09/28
- Re: Tree-sitter api, Tuấn-Anh Nguyễn, 2021/09/17
- Re: Tree-sitter api, Stefan Monnier, 2021/09/17
- Re: Tree-sitter api, Tuấn-Anh Nguyễn, 2021/09/17