Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teleivo/dot
Parser for the DOT language written in Go
https://github.com/teleivo/dot
Last synced: 1 day ago
JSON representation
Parser for the DOT language written in Go
- Host: GitHub
- URL: https://github.com/teleivo/dot
- Owner: teleivo
- License: gpl-3.0
- Created: 2024-08-07T17:04:11.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-30T06:10:38.000Z (4 days ago)
- Last Synced: 2024-12-30T06:38:02.226Z (4 days ago)
- Language: Go
- Size: 287 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DOT
Parser for the [DOT language](https://graphviz.org/doc/info/lang.html) written in Go.
## Install
```sh
go get -u github.com/teleivo/dot
```## Limitations
* does not support https://graphviz.org/doc/info/lang.html#html-strings as I have not needed them
for my purposes
* does not support [double-quoted strings can be concatenated using a '+'
operator](https://graphviz.org/doc/info/lang.html#comments-and-optional-formatting)
* does not treat records in any special way. Labels will be parsed as strings.
* attributes are not validated. For example the color `color="0.650 0.700 0.700"` value has to
adhere to some requirements which are not validated. The values are parsed as identifiers (unquoted, numeral, quoted) and ultimately stored as strings.## Disclaimer
I wrote this library for my personal projects. It is thus tailored to my needs. Feel free to use it!
That being said, my intention is not to adjust it to someone elses liking.