Using DUB:
> dub build
> bin/sdlang lex sample.sdl
(...output...)
> bin/sdlang parse sample.sdl
(...output...)
> bin/sdlang to-sdl sample.sdl
(...output...)
Using DUB:
> dub test
or
> dub test --config=unittest-buitin
The first one runs the tests via unit-threaded. The second uses D's built-in test runner.
Make sure ddox is installed and on the PATH.
Also, at the moment, SDLang-D's dependencies will need to be in specific sister directories to SDLang-D, instead of where DUB installs them:
> cd ..
> git clone https://github.com/Abscissa/libInputVisitor.git libInputVisitor
> git clone https://github.com/s-ludwig/taggedalgebraic.git taggedalgebraic
> cd sdlang-d
Then, run:
> build-docs
Finally, open 'docs/index.html' in your browser.
SDLang-D is a DUB package and is available in
the DUB package registry. The package name is
sdlang-d
.