- 博客(2)
- 收藏
- 关注
原创 Bottom-up Parsing
Bottom-up Parsing A–>aabb handle :句柄 aabb为A的句柄 Syntax Parsing Table 语法分析表 Parse Stack 分析栈 Shift 移动(词素移动) Reduce 归约(把aabb变成A,把终结符一一变成语法分析树) 一个非终结符形成一个语句 LR Parsing Table (从左向右读的最右推导) 自下向上 S’–>A S–>A A–>.aA|b State 状态 S:Shift 移动 $: 终结符 goto 状态跳
2020-06-16 07:22:48
488
原创 程序设计语言之描述语法与语义(上)
描述语法与语义(Describing Syntax and Semantics)(上) 1.概述(introduction) 语法: 一个语言的构成规则 (the form or structure of the expressions, statements, and program units) 语义:一句话的含义( the meaning of the expressions, statements, and program units) 语法和语义定义了一门语言。 一门语言的使用者: 语言的设计者
2020-06-15 15:24:36
1297
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人