Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am wondering if we can define EDIFACT grammar in ANTLR/xText and then generate parser.
If so, are these grammars defined already that we can leverage (open source preferably)?
Are there any open source libraries that can read and write EDIFACT other than Smooks?
From a handy book on the subject... (http://books.google.co.uk/books?id=rDbRS6vEG0MC&pg=PA222&lpg=PA222&dq=EDIFACT+bnf&source=bl&ots=pfFYf4nsVv&sig=JXY5HPo7Ka02ji35fjW8R8wFBX8&hl=en&sa=X&ei=05ozT6K5NMO80QWa-ZSLAg&ved=0CGEQ6AEwCA#v=onepage&q=EDIFACT%20bnf&f=false) we have the following section...
, which appears to suggest that it's not a good idea - although depending on what you require you can certainly write one, I would personally find Antlr an easier tool to use (I'm currently writing a lab for Xtext and it's a less forgiving learning curve), but your milage may vary...
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.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have pretty standard java project with standard gradle layout, all sources are stored in git. I want to write documentation in markdown (or similar markup language) and keep all files in project directory (e.g. docs/ folder in the root). Then I want to generate static site or push my sources somewhere to have access to full documentation in html (should be self-hosted solution).
It will be good if I'm able to add simple link to other articles (like I do it in any wiki engine by using [[article]]). And It would be perfect if I've been able to add quick links to javadoc by the same technique as link to articles. And also it would be perfect if it has had built-in search engine.
I've gone through couple of static site generators but I didn't find anything which can satisfy my requirements at least half. Is there something like that? Or I need to code it by myself (I know it won't take to much time)? Maybe there's more common use case for documentation?
You have to use the concept of Doclets. There are some out there. Maybe just try this one:
https://github.com/Abnaxos/pegdown-doclet
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am looking for a code analyses framework in Java for Java.
I want to make a plugin for another very good open source project.
All I search for is a framework that reads a java file and returns a model of all objects, functions... used in the java class. (Like Eclipse Outline)
I already googled but, i couldn't find something useful.
What you need is basically just a parser (you do not need code analytics per se, just an intermediary format suitable for your need). Something simple like http://code.google.com/p/javaparser/wiki/UsingThisParser could already fit your need. If you want something a little more complete, take a look at antlr. It is a generic parser but the default implementation is in Java, and the Java grammar written for it is very good (and written by Antlr implementers).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I've been handed the task (not sure if i like it or not) of generating a PDF export in an eclipse RCP app. I'm looking for a framework with as little effort as possible I can pass in a pojo model and some kind of template and presto.. get a PDF report back. I've taken a look at BIRT and I'm sure it offers that functionality just was hard to read through all the stuff does anyone have a tool they use to do this that is really easy or any ideas of how to move forward? Thanks - Duncan krebs
iText is great for generating all kinds of PDFs, but If you're going to do reports, then I have to recommend JasperReports.
Also, you can use iReport to simplify the design of your jasper reports.
I think the most widely used framework for this purpose is iText. Be sure to check out the terms of use.
I use iText with Spring. A good example can be found in Springs tutorial at Spring pdf
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I need a fast way to extract data from json responses a I get from a webservice.
By fast, I mean fast for the programmer, not necessarily for the computer.
I was thinking of something like Xpath for Json, if such a thing exists.
Any ideas? I am open to any Java Json library. In fact, the easiness to extract data from Json with a powerful querying language will be central to the choice of json library.
Jackson JSON Processor has been used in a lot of frameworks. The tree model or data binding approach is probably the easiest to work with.
JsonPath emerged as a de facto standard for such tasks. A Java implementation:
https://github.com/nebhale/JsonPath
It seems well maintained and works fine.
https://github.com/jayway/JsonPath
Similar to #alexis-dufrenoy's answer -- but it looks like a more active project.
Disclaimer: I have not tried #nebhale's system, so I can't judge which is best.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Consider the requirements for embedding help in a Java desktop application (or applet):
Single source for content (such as AsciiDoc) to generate high quality PDF manuals1
Hooks for context-sensitive help
Robust, simple, and well documented API (under an hour to learn)
Small footprint (a sub-100K Java archive)2
Integrate as a docked MDI-style window, or a separate window
Free open source software
Google says:
JavaHelp
Java Programming Help
Help Authoring Tools
Which of these, or any others, would you recommend?
1Storing the content in AsciiDoc format would be ideal, so long as conversion is trivial.
2Up to 500kb.
Have a look at DocBook - last time I looked it could generate PDF, HTML and JavaHelp from files written in DocBook XML .
A crash course is available at: http://opensource.bureau-cornavin.com/crash-course/
Definitely Asciidoc, or its more recent cousin AsciiDoctor.