Syntax analysis overview

Parsing ( syntax the Analysis ) Overview

Syntax analysis is that the syntax analyzer ( phraser ) recognizes various phrases from the token sequence output by the lexical analyzer and constructs a syntax analysis tree

Parse tree of assignment statement

Insert picture description here

Parse tree for variable declaration

D = Declaration (declaration statement) T = Type (type) IDS = Identifier Sequence (identifier sequence)
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_44823898/article/details/108001845