Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 1.36 KB

TOOLS.md

File metadata and controls

62 lines (46 loc) · 1.36 KB

Included tools and scripts

Lex or Parse an SDL file

Using DUB:

> dub build
> bin/sdlang lex sample.sdl
(...output...)
> bin/sdlang parse sample.sdl
(...output...)
> bin/sdlang to-sdl sample.sdl
(...output...)

Unittests

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.

Build API Reference

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.

DUB Package Files

SDLang-D is a DUB package and is available in the DUB package registry. The package name is sdlang-d.