emacs-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]