A little tool to export files written in the
Creole markup language
to different formats.
Currently planned supported outputs are XHTML and LaTex.
Attention: This is work in progress and not ready to use!
Limitations (due to limits in the grammar):
- Nested lists are not parsed.
- Links are not parsed.
- Only bold and italics emphases are supported.
You need a working Go environment. Tested successfully with Go 1.9.
go get github.com/s-l-teichmann/creoleto
Put the resulting creoleto
binary into your PATH
.
creoleto -standalone -format latex < data/text.creole > converted.tex
The GPLed Creole 1.0 ANTLR3 grammar was taken from
here
and was modified to be usable with ANTLR4.
You need a pretty recent ANTLR4
(tested successfully with 4.6+) to create the Go parser code:
antlr4 -Dlanguage=Go -o parser Creole10.g4
To build the resulting code you need Go ANTLR4 runtime:
go get github.com/antlr/antlr4/runtime/Go/antlr
This is Free Software covered by the terms of the MIT license.
Copyright (c) 2017 by Intevation GmbH