Skip to content

Extract MySQL lexer and parser polyfills#384

Draft
adamziel wants to merge 3 commits intotrunkfrom
codex/native-parser-php-facade
Draft

Extract MySQL lexer and parser polyfills#384
adamziel wants to merge 3 commits intotrunkfrom
codex/native-parser-php-facade

Conversation

@adamziel
Copy link
Copy Markdown
Collaborator

@adamziel adamziel commented Apr 28, 2026

Summary

  • move the existing PHP MySQL lexer implementation into WP_MySQL_Polyfill_Lexer
  • move the existing PHP MySQL parser implementation into WP_MySQL_Polyfill_Parser
  • keep the public WP_MySQL_Lexer and WP_MySQL_Parser classes as thin subclasses of the polyfills

Testing

  • php -l on changed PHP files
  • parser smoke: lex and parse SELECT 1 through the public PHP classes

This PR is intentionally extraction-only. Native routing and parser-node behavior changes are stacked in follow-up PRs so their diffs are obvious.

@adamziel adamziel changed the title Add native parser PHP facade Extract MySQL lexer and parser polyfills Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant