Skip to content

Commit

Permalink
export compile() sub
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Nov 1, 2023
1 parent 984736e commit 4d0b37a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/CSS/Specification/Compiler.rakumod
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
unit class CSS::Specification::Compiler;

use CSS::Specification::Compiler::RakuAST::Actions;
also does CSS::Specification::Compiler::RakuAST::Actions;
also does CSS::Specification::Compiler::RakuAST::Actions;

use CSS::Specification::Compiler::RakuAST::Grammars;
also does CSS::Specification::Compiler::RakuAST::Grammars;
also does CSS::Specification::Compiler::RakuAST::Grammars;

use CSS::Specification::Compiler::RakuAST::Roles;
also does CSS::Specification::Compiler::RakuAST::Roles;
also does CSS::Specification::Compiler::RakuAST::Roles;

use CSS::Specification;
use CSS::Specification::Compiler::Actions;
Expand Down
2 changes: 1 addition & 1 deletion lib/CSS/Specification/Compiler/RakuAST.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ unit module CSS::Specification::Compiler::RakuAST;

use experimental :rakuast;

our proto sub compile (|c) is export {
our proto sub compile (|c) is export(:compile) {
{*}
}

Expand Down
3 changes: 1 addition & 2 deletions lib/CSS/Specification/Compiler/RakuAST/Roles.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ method role-ast(@role-id) {
my @expression = @methods.map(-> $expression { RakuAST::Statement::Expression.new: :$expression });
my RakuAST::Blockoid $body .= new: RakuAST::StatementList.new(|@expression);
my RakuAST::Name $name .= from-identifier-parts(|@role-id);
RakuAST::Package.new(
:declarator<role>,
RakuAST::Role.new(
:$name,
:body(RakuAST::Block.new: :$body),
:scope<unit>,
Expand Down
2 changes: 1 addition & 1 deletion t/00compile.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use CSS::Grammar::Test;
use CSS::Specification;
use CSS::Specification::Compiler;
use CSS::Specification::Compiler::Actions;
use CSS::Specification::Compiler::RakuAST;
use CSS::Specification::Compiler::RakuAST :&compile;

lives-ok {require CSS::Grammar:ver(v0.3.0..*) }, "CSS::Grammar version";

Expand Down

0 comments on commit 4d0b37a

Please sign in to comment.