Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSL to define decorator command sets #942

Open
sanketshevkar opened this issue Nov 18, 2024 · 0 comments
Open

DSL to define decorator command sets #942

sanketshevkar opened this issue Nov 18, 2024 · 0 comments

Comments

@sanketshevkar
Copy link
Member

Feature Request 🛍️

DCS as json objects can be very verbose and difficult to interpret and write, especially for busineess/domain experts.

Use Case

A new DSL for DCS similar to CSS to fine target and decorators on them can be helpful to interpret and author DCS.

Possible Solution

I hacked a small project over this weekend for a DSL for Decorator Command Sets, syntax is somewhat a mixture of CSS and Concerto. Mostly reverse engineered the parser grammar for Concerto in Peggy.

name test.decoratorCommands
1.0.0

#[email protected] {
    @sample()
}

[name,address] {
    @hide(true)
}

.Person {
    @hide(false)
}

#[email protected]
.Person
[name] {
    @FullName('Sanket')
}

Replit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant