DSL Reference#
This section provides a comprehensive reference for the Sruja Domain Specific Language (DSL).
Grammar#
The Sruja DSL is designed to be human-readable and concise. It uses a C-like syntax with braces {} for grouping.
Basic Rules#
- Strings: Double-quoted strings
"value". - Identifiers: Alphanumeric names (e.g.,
WebApp,API_Service). - Comments:
//for single line,/* ... */for multi-line.
Elements#
Architecture#
architecture "Name" { ... }System#
system ID "Label" { ... }Container#
container ID "Label" { ... }Component#
component ID "Label" { ... }Person#
person ID "Label"Relations#
From -> To "Label"