解析

出自維基百科,自由嘅百科全書
跳去導覽 跳去搵嘢
An example of parsing a mathematical expression.

電算語言學入面,解析英文Parsing,更正式叫syntactic analysis)係分析一串tokens、決定佢喺某種型式語法(en:formal grammar)中嘅語法結構(grammatical structure)嘅過程。一架編譯器en:compiler)中,解析器en:parser)就負責做呢樣嘢。

解析過程會抽象輸入嘅文本內蘊嘅架構(to capture the implied hierarchy of the text),轉文本做資料結構,通常會係一棵,方便以後嘅處理。Lexical analysis creates tokens from a sequence of input characters and it is these tokens that are processed by a parser to build a data structure such as parse tree or abstract syntax trees.

人話[編輯]

程式語言[編輯]

解析器嘅款[編輯]

解析器嘅例[編輯]

參攷[編輯]

再睇下[編輯]

解析器嘅概念[編輯]

整解析器嘅軟件[編輯]

See also: List of Parsers comparison table.

自由軟件[編輯]

維基媒體[編輯]

[編輯]