【发布时间】:2023-03-19 14:17:01
【问题描述】:
我正在阅读 SQLite 的 grammar 并对以下段落有一些疑问。
// The name of a column or table can be any of the following:
//
%type nm {Token}
nm(A) ::= id(A).
nm(A) ::= STRING(A).
nm(A) ::= JOIN_KW(A).
nm 在程序中被广泛使用。 lemon parser 文档说
通常,非终结符的数据类型是指向根的指针 一个分析树结构,其中包含有关它的所有信息 非终端
%type expr {Expr*}
我是否应该理解
{Token}实际上代表一个句法分组,它是一个非终端标记,“是一个包含所有...的分析树结构”?nm 的缩写是什么,只是“名称”吗?
每个 nm(A) 声明的句号(点
.)是什么?
【问题讨论】:
标签: sqlite compiler-construction grammar bison bnf