Skip to content

Commit b1ba2c3

Browse files
committed
Factor out CSS::Specification::Compiler as a seperate module
1 parent f171650 commit b1ba2c3

20 files changed

+10
-974
lines changed

Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{{$NEXT}}
2+
- A major rebuild of this module to compile specifications
3+
via RakuAST. This release retires CSS::Specification::BUILD
4+
and introduces CSS::Specification::Compiler.
25

36
0.4.15 2025-01-21T12:16:33+13:00
47
- Revert v0.4.14 changes to usage token; unbreaks

META6.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"depends": [
99
"CSS::Grammar:ver<0.3.12+>",
10-
"Color::Names",
10+
"Color::Names",
1111
"Method::Also"
1212
],
1313
"description": "CSS Property definition grammar and generation tools",
@@ -20,18 +20,14 @@
2020
"CSS::Specification::Actions": "lib/CSS/Specification/Actions.rakumod",
2121
"CSS::Specification::Defs": "lib/CSS/Specification/Defs.rakumod",
2222
"CSS::Specification::Defs::Actions": "lib/CSS/Specification/Defs/Actions.rakumod",
23-
"CSS::Specification::Compiler": "lib/CSS/Specification/Compiler.rakumod",
24-
"CSS::Specification::Compiler::Util": "lib/CSS/Specification/Compiler/Util.rakumod",
25-
"CSS::Specification::Compiler::Grammars": "lib/CSS/Specification/Compiler/Grammars.rakumod",
26-
"CSS::Specification::Compiler::Roles": "lib/CSS/Specification/Compiler/Roles.rakumod",
27-
"CSS::Specification::Compiler::Actions": "lib/CSS/Specification/Compiler/Actions.rakumod",
2823
"CSS::Specification::Runtime::Grammar": "lib/CSS/Specification/Runtime/Grammar.rakumod",
2924
"CSS::Specification::Runtime::Actions": "lib/CSS/Specification/Runtime/Actions.rakumod"
3025
},
3126
"resources": [
3227
],
3328
"source-url": "https://github.com/css-raku/CSS-Specification-raku.git",
3429
"tags": [
30+
"rakuast", "css"
3531
],
3632
"test-depends": [
3733
],

bin/css-gen-properties.raku

Lines changed: 0 additions & 18 deletions
This file was deleted.

lib/CSS/Specification/AST.rakumod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class CSS::Specification::AST {
2-
2+
warn "CSS::Specification::AST is deprecated, please use CSS::Grammar::AST";
33
use CSS::Grammar::AST;
44
also is CSS::Grammar::AST;
55
}

lib/CSS/Specification/Actions.rakumod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,10 @@ method property-ref:sym<css21>($/) { make 'ref' => $<id>.ast }
146146
method property-ref:sym<css3>($/) { make 'ref' => $<id>.ast }
147147
method value:sym<prop-ref>($/) {
148148
my Pair $prop-ref = $<property-ref>.ast;
149-
my $rule = 'expr-' ~ $prop-ref.value;
149+
my $prop = $prop-ref.value;
150+
my $rule = 'expr-' ~ $prop;;
150151
%.rule-refs{ $rule }++;
151-
%.child-props{$_}.push: $prop-ref for @*PROP-NAMES;
152+
%.child-props{$_}.push: $prop for @*PROP-NAMES;
152153
make (:$rule);
153154
}
154155

lib/CSS/Specification/Compiler.rakumod

Lines changed: 0 additions & 35 deletions
This file was deleted.

lib/CSS/Specification/Compiler/Actions.rakumod

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)