Sign inSign up

damolab/neurotranslator

By damolab

•Updated about 1 month ago

Powerfull XBNF neurotranslator compiler.

Image
Languages & frameworks
Data science
Content management system
1

1.3K

damolab/neurotranslator repository overview

⁠XBNF Neurotranslator

XBNF neurotranslator is a powerfull translator compiler based on an eXtended BNF translation grammar.

This image contains the xbnf Linux/64bits binary command and library.

On sourceforge : binaries, C++ sources, basic tests & support tickets : https://neurotranslator.sourceforge.io⁠

Library of this image comes from this project : https://sourceforge.net/projects/xbnf/⁠

French blog dedicated to XBNF : https://damolab.zapto.org/xbnf/⁠

⁠How to use this image :

Enter container with an interactive bash :

docker run -it damolab/neurotranslator:latest

Show version :

xbnf --version

List grammars :

find . | grep .xbnf$

Boolean resolution using grammar :

cd ~/lib/maths ; xbnf -i samples/logic.txt -o - logic.calculation.xbnf

Simulation of apache logs to ruby :

cd ~/lib/logs ; ./inject_logs.rb 1 samples/access.log | xbnf -f -i - -o - apache-to-json.xbnf ../www/URI-RFC3986.xbnf

Generate a XBNF grammar from DTD :

cd ~/lib/XML ; xbnf -i samples/choco-chip.dtd -o choco-chip.xbnf DTD-to-XBNF.xbnf

Validate an XML using previous grammar :

xbnf -i samples/choco-chip.xml -o - choco-chip.xbnf

Container volume for outside container

docker run -v "/your-local-workdir/:/mnt" -it damolab/neurotranslator:latest xbnf -i /mnt/input.txt -o ...

⁠Tests :

make clean test

⁠Install :

XBNF compiler is available on well-known architectures, just retrieve and copy the proper binary on your system.

https://sourceforge.net/projects/neurotranslator/files/⁠

⁠Build xbnf :

To build xbnf on other architectures, you need a C++ GNU toolchain on your platform.

Docker image with Linux C++ 11 GNU toolchain for build & test purposes : https://hub.docker.com/r/damolab/neurotranslator-compil⁠

Nice translations...

Tag summary

Content type

Image

Digest

sha256:8e7947ab5…

Size

152.9 MB

Last updated

about 1 month ago

docker pull damolab/neurotranslator