[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: |
Mon, 20 Sep 2021 09:48:27 -0700 |
A minor question, is there a better CS term for “punctuation marks”?
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 usually
represent punctuation marks (FIXME: better word than ``puncturation
marks''?) like quote @samp{"} and bracket @samp{[}, or tokens that
have a fixed representation, such as keywords like @code{return}.
Yuan
- Re: Tree-sitter api, (continued)
- Re: Tree-sitter api, Stefan Monnier, 2021/09/15
- Re: Tree-sitter api, Eli Zaretskii, 2021/09/15
- Re: Tree-sitter api, Yuan Fu, 2021/09/16
- 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 <=
- Re: Tree-sitter api, Eli Zaretskii, 2021/09/20
- Re: Tree-sitter api, John Yates, 2021/09/20
- Re: Tree-sitter api, Yuan Fu, 2021/09/21
- 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