Commit e065910
committed
Add Rust parser bridge helpers
When a native MySQL parser extension declares WP_MySQL_Native_Parser,
load a small bridge file that exposes WP_Parser_Grammar internals to the
extension. The native parser needs the grammar's terminal table, rules,
and lookahead map, but those live on a PHP object — the bridge function
hands them out as a plain array the extension can consume.1 parent c265cf5 commit e065910
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments