Urscal

- Files
.rsc- Formats as
- Ur
- Lints
- Every rule that reads its code
- In
ur.toml [format.urscal]
Formatted
Discounts.rsc, as writtenmodule cart::Discounts
// Whether a cart's codes discount it: a code the store knows, on a cart holding more than one item.
bool discounted(Tree cart) = any(c <- codes(cart), contains(["SPRING", "WELCOME", "FRIENDS-AND-FAMILY"], unparse(c))) when size(items(cart)) > 1;
default bool discounted(Tree _) = false;
ur format --style ur Discounts.rscmodule cart::Discounts
// Whether a cart's codes discount it: a code the store knows, on a cart holding
// more than one item.
bool discounted(Tree cart) = any(c <- codes(cart),
contains(["SPRING", "WELCOME", "FRIENDS-AND-FAMILY"], unparse(c)))
when size(items(cart)) > 1;
default bool discounted(Tree _) = false;
Versions
Ur reads Urscal as the profiles below name it. Name the versions a project targets in target; without it, Ur reads urscal-1.
| Profile | Dialect |
|---|---|
urscal-1 | Ur |