Skip to content

studio42gmbh/dle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub GitHub top language GitHub last commit GitHub issues

Data Language Examples

DL Logo

ATTENTION: This is the ALPHA release. Still many changes to come!

This is the example project to Data Language (See: https://github.com/studio42gmbh/dl)

Have a great day!

Benjamin

"Look up to the stars not down on your feet. Be curious!" Stephen Hawking 1942 - 2018

Get started

Find the Javadoc here: https://studio42gmbh.github.io/dle/javadoc/

Simple Configuration Example

Shows using DL for your configuration.

See https://github.com/studio42gmbh/dle/tree/master/src/main/java/de/s42/dl/examples/simpleconfiguration

Load And Store Example

Shows using DL for loading and storing your complex configuration.

See https://github.com/studio42gmbh/dle/tree/master/src/main/java/de/s42/dl/examples/loadandstore

Binary Example

Shows you how to write and read DL in different default formats - especially BIN and BIN_COMPRESSED.

See https://github.com/studio42gmbh/dle/tree/master/src/main/java/de/s42/dl/examples/binary

GUI Example

Shows creating a very simple data driven GUI framework with DL.

See https://github.com/studio42gmbh/dle/tree/master/src/main/java/de/s42/dl/examples/gui

DL Only Example

Showcases the possibilites of DL only usage.

  • Require other modules
  • Define extern types, annotations, pragmas
  • Define complex types with extends und contains
  • Use pragmas
  • Define instances
  • Reference instances
  • Export instances
  • Introspect DL within Java

See https://github.com/studio42gmbh/dle/tree/master/src/main/java/de/s42/dl/examples/dlonly

HTML Example

Showcases creating a html file from a dl dialect.

From

html {
  body {
    div main {
      classes : alert, alert-info;
      div {
        classes : jumbotron;
        h1 heading { text : "The Heading"; }
        p headingText { text : "The multiline\ntext under the heading";	}
      }
    }
  }
}

To

<html>
  <body>
    <div id="main" class="alert, alert-info">
      <div class="jumbotron">
        <h1 id="heading">The Heading</h1>
        <p id="headingText">The multiline<br/>text under the heading</p>
      </div>
     </div>
  </body>
</html>

See https://github.com/studio42gmbh/dle/tree/master/src/main/java/de/s42/dl/examples/html