Commit graph

4 commits

Author SHA1 Message Date
Callum Law
099c3fa590 Meta: Handle juxtaposition in CSS value parsing code generation 2026-05-13 11:26:20 +01:00
Callum Law
30e58a48c6 Meta: Handle optionals in CSS value parsing code generation 2026-05-13 11:26:20 +01:00
Callum Law
6361dcaae5 Meta: Handle groups in CSS value parsing code generation
We don't yet support required groups so for the moment these just fall
back to generating the parsing code of their child
2026-05-13 11:26:20 +01:00
Callum Law
09418e8c77 Meta: Implement CSS value type parsing code generation
To do this we parse the grammar supplied in `ValueTypes.json` and
generate the appropriate parsing function in `CSS::Parser::Parser`

Only a small subset of the CSS grammar (i.e. types `<foo>` and
alternatives `<foo> | <bar>`) is implemented so far, it will be
expanded in later commits.
2026-04-29 11:42:57 +01:00