-
Notifications
You must be signed in to change notification settings - Fork 0
Home
ATTENTION: This is the ALPHA release. Still many changes to come! More explanations will come in future.
The Data Language is designed to allow complex data driven projects to be more successful. Its simple syntax is close to JSON. But DL also provides extensible language constructs for types, enums, annotations and pragmas. It also allows you to modularize.
The Data Language provides a new state "loadTime" in your application life cycle (develop, compile, deploy, run). This allows you to easily make sure that just validated and consistent data enters your application. The possibilities range much further than any JSON schema can provide.
All entities types, annotations, enums, pragmas and instances are extensible.
You can find the complete ANTLR grammar here: https://github.com/studio42gmbh/dl/tree/master/src/main/antlr4/de/s42/dl/parser
Instances are your data.
Types allow to define the allowed entities in your domain dialect.
Enums allow to define enumerations (list of defined values).
Annotations allow you to give constraints to your types, attributes and instances.
Expressions allow you to assign complex terms like 5 * ( 8 - 4 ) to your attributes.
Alias allows to define another name for your types, annotations and pragmas.
Require other modules to be loaded.
Pragmas allow you to set system properties like i.e. if you are allowed to define further types etc.
DL provides single line (//) and multiline comments (/* ... */)
Copyright Studio 42 GmbH 2022.