I want to generate a Swift parser from the grammar which describes FTL syntax.
Is there any tool to make the EBNF -> ANTLR
conversion automatically? Or are these two grammar syntaxes at least convertible?
The grammar itself is autogenerated from the set of rules written in JavaScript. The other possible solution is to update rules -> EBNF
serializer to output ANTLR syntax. But I'm newbie into languages and not sure that could handle it.
Is there any tool to make the EBNF -> ANTLR conversion automatically?
AFAIK, there is no such tool.
Or are these two grammar syntaxes at least convertible?
No. EBNF allows for indirect left recursive rules, which ANTLR does not support (it does support direct left recursive rules though).