Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Fix grammar compression #11

Merged
merged 1 commit into from
Feb 13, 2025
Merged

Fix grammar compression #11

merged 1 commit into from
Feb 13, 2025

Conversation

JanJakes
Copy link
Contributor

This fixes the following regression:

The PHPized grammar now contains array indexes of the main rules, while previously they were not listed. It seems there are numeric gaps. It might be a regression caused when manually parsing the grammar. I suppose it's an easy fix.

Fixes #10.

The grammar expansion code caused duplicit entries for expanded rules
that are used in multiple different entries. When creating an index of the
grammar rules, this caused array index gaps, converting a list array to an
associative array with indexes included in the compressed grammar.
@JanJakes JanJakes force-pushed the fix-grammar-compression branch from 12a1b00 to b95341e Compare February 10, 2025 09:18
@JanJakes JanJakes changed the base branch from develop to ast-sqlite-driver February 10, 2025 09:18
Base automatically changed from ast-sqlite-driver to develop February 12, 2025 09:42
@JanJakes JanJakes requested a review from adamziel February 12, 2025 09:43
@JanJakes JanJakes merged commit e59c77a into develop Feb 13, 2025
9 checks passed
@JanJakes JanJakes deleted the fix-grammar-compression branch May 12, 2025 08:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix grammar compression regression
2 participants