https://github.com/brandly/elm-dot-lang
DOT Language
https://github.com/brandly/elm-dot-lang
ast dot graphviz parser
Last synced: about 1 year ago
JSON representation
DOT Language
- Host: GitHub
- URL: https://github.com/brandly/elm-dot-lang
- Owner: brandly
- License: bsd-3-clause
- Created: 2019-02-25T14:58:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-29T18:29:15.000Z (over 1 year ago)
- Last Synced: 2025-04-23T21:08:13.768Z (about 1 year ago)
- Topics: ast, dot, graphviz, parser
- Language: Elm
- Homepage: https://package.elm-lang.org/packages/brandly/elm-dot-lang/latest/DotLang
- Size: 120 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dot-lang [](https://travis-ci.org/brandly/elm-dot-lang)
```elm
import DotLang
DotLang.fromString "graph { a -- b }"
-- => Ok (Dot Graph Nothing [EdgeStmtNode (NodeId (ID "a") Nothing) (EdgeNode (NodeId (ID "b") Nothing)) [] []])
```
### development
```
$ npm install
$ npm test
```
the fuzz tests might take a moment. to exclusively run unit tests on every save, do this:
```
$ npm test -- tests/Main.elm --watch
```
