XBNF
(X)BNF simple and clever translation grammar compiler
XBNF Neurotranslator is a powerfull extended BNF grammar language to handle translations.
XBNF comes with many features to handle different kind of situations.
See [Files] to get the xbnf command binaries among architectures.
Blog with all ressources (DockerHub images, documentations, ...):
https://damolab.zapto.org/xbnf/
Seek library to get a full set of grammar examples:
https://sourceforge.net/projects/xbnf/