Intuitive DSL for Java

Version 2.1.0 · examples/01-quickstart/README.md

Git clone
git clone https://www.dbalabs.ch/git/intuitive-dsl-java.git

README.md

01 - Quickstart

This example demonstrates the absolute minimum required to bootstrap the Intuitive DSL engine, define commands, and execute them in Java.

What is covered

  • Annotating standard Java classes with @DslCommand.
  • Defining basic iBNF syntax with parameters, optional groups [ ], and alternatives { | }.
  • Binding values using @Bind and boolean flags using @OnClause.
  • Initializing the IntuitiveDslEngine and parsing user input.

How to run

From your IDE (IntelliJ, Eclipse, VS Code)

  1. Open the QuickstartApp.java class.
  2. Click the Run button (usually a green play icon) next to the main method.

From the command line (Maven)

Navigate to this directory (01-quickstart) and run:

mvn clean compile exec:java