Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
This project teaches the power of DSL's in Groovy
Groovy
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
README.md

README.md

DSL in Groovy

This project accompanies an 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.