Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This project teaches the power of DSL's in Groovy

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 README.md
README.md

DSL in Groovy

This project accompanies a article on the Luminis Developer blog

Specifically Domain Specific Languages in Groovy

Running a Test

Use the following command to run a test. It is assumped that groovy is installed and present on the path.

groovy -cp src/main/groovy file

For example

groovy -cp src/main/groovy src/test/groovy/ProgramBuilderTest.groovy

Directory Structure

.
├── README.md
└── src
    ├── main
    │   └── groovy
    │       ├── program
    │       │   ├── AbstractProgram.groovy    
    │       │   ├── DoProgram.groovy
    │       │   ├── ForwardProgram.groovy
    │       │   ├── LeftProgram.groovy
    │       │   ├── Program.groovy
    │       │   └── RightProgram.groovy    
    │       ├── ProgramBuilder.groovy
    │       └── robot
    │           ├── LoggerRobot.groovy
    │           └── Robot.groovy
    └── test
        └── groovy
            ├── program
            │   └── ProgramTest.groovy
            ├── ProgramBuilderTest.groovy
            └── robot
                └── LoggerRobotTest.groovy
Something went wrong with that request. Please try again.