ANTLR/xText で EDIFACT 文法を定義し、パーサーを生成できるかどうか疑問に思っています。
もしそうなら、これらの文法はすでに定義されており、活用できますか (できればオープンソース)?
Smooks 以外に EDIFACT を読み書きできるオープン ソース ライブラリはありますか?
2 に答える
この件に関する便利な本から... =0CGEQ6AEwCA#v=onepage&q=EDIFACT%20bnf&f=false ) 次のセクションがあります...
、これは良い考えではないことを示唆しているようです-必要なものによっては確かに書くことができますが、個人的にはAntlrの方が使いやすいツールだと思います(私は現在Xtextのラボを書いていますが、学習には寛容ではありません)曲線)、しかし、走行距離は異なる場合があります...
I tried this approach (using ANTLR) when I developed bots open source edi translator (http://bots.sourceforge.net). This looked like a good approach, but I did not succeed. My conclusion was that 'parsing' by ANTLR is something very different than 'parsing' an edi-file; the words/concepts sound the same but these are really different worlds. If you are looking for 'grammars'(that is: descriptions of edifact and x12 messages) these can be found in the downloads of the sourceforge page.