我想解析下面的订单系列:
orders-series: {Wordpress Profiles
Blogger is a User
Admin is a Blogger
Author is a Blogger
Subscriber is a User
Blogger Role
Blogger Manage Posts
Admin Roles
Admin Manage Site
Manage Site Include Manage Users
Manage Site Include Manage Themes
Manage Site Include Manage Plugins
}
orders-block: copy []
newline2: rejoin [newline newline]
rule: [
[some [copy orders to newline2 (append orders-block orders) thru newline2]]
| copy orders to end (append orders-block orders)
]
parse orders-series rule
write clipboard:// mold orders-block
我在剪贴板中得到了这个
[{Wordpress Profiles
Blogger is a User
Admin is a Blogger
Author is a Blogger
Subscriber is a User} "Blogger Role^/Blogger Manage Posts"]
而我想得到这个
[{
Wordpress Profiles
Blogger is a User
Admin is a Blogger
Author is a Blogger
Subscriber is a User
}
{
Blogger Role
Blogger Manage Posts
}
{
Admin Roles
Admin Manage Site
Manage Site Include Manage Users
Manage Site Include Manage Themes
Manage Site Include Manage Plugins
}]
我应该如何修改我的解析规则?
谢谢。