3
  1. ANTLR/xText で EDIFACT 文法を定義し、パーサーを生成できるかどうか疑問に思っています。

  2. もしそうなら、これらの文法はすでに定義されており、活用できますか (できればオープンソース)?

  3. Smooks 以外に EDIFACT を読み書きできるオープン ソース ライブラリはありますか?

4

2 に答える 2

3

この件に関する便利な本から... =0CGEQ6AEwCA#v=onepage&q=EDIFACT%20bnf&f=false ) 次のセクションがあります...

グーグルブックスのスクリーンショット、これは良い考えではないことを示唆しているようです-必要なものによっては確かに書くことができますが、個人的にはAntlrの方が使いやすいツールだと思います(私は現在Xtextのラボを書いていますが、学習には寛容ではありません)曲線)、しかし、走行距離は異なる場合があります...

于 2012-02-09T10:22:48.033 に答える
1

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.

于 2012-02-13T14:22:23.863 に答える