Bilingual post · Post bilíngue

Jump to: English · Português

English {#english}

CrabPascal Parser: From Tokens to AST

The lexer hands the parser a stream of tokens. The parser's job is to verify that stream follows Pascal grammar and build an Abstract Syntax Tree (AST) — a tree-shaped data structure that represents program structure without irrelevant punctuation.