Skip to main content

Module parser

Module parser 

Source
Expand description

PHP parser — builds an AST from the token stream.

Split into modules for maintainability:

  • statements — control flow, functions, classes
  • expressions — operators, calls, literals
  • tests — comprehensive parser tests

Structs§

ParseError
A parse error with its location in the source.
Parser
Recursive descent PHP parser. Produces a typed AST from a token stream.