Git Product home page Git Product logo

xmlpg's Introduction

XMLPG (XML Multi-Language Protocol Generator)

Define your binary protocol in an XML file and then use this tool to generate network message marshalling code for Java, C++, C#, Objective-C, Python, and JavaScript languages.

An example XML specification file is DIS2012.xml.

For more info see XMLPG.md.

Compiling

The XMLPG tool uses the Maven build system, available from Apache.org.

  • mvn compile: Compiles the XMLPG program itself

Running

There is a sample script runXmlpg.sh that uses the sample DIS2012.xml spec and will generate output in target/generated-sources/.

License

XMLPG is released under the BSD license. See LICENSE.md for details.

xmlpg's People

Contributors

brutzman avatar leif81 avatar mcgredonps avatar phoppermann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xmlpg's Issues

Add unit tests

in the simplest case: run generator on XML and check that generated output is as expected

Python code not generating

When I run xmlpg with DIS2012.xml and python the language I see this:

putting network code in null/null

Add basic validity checks

The input xml should be checked for some basic errors.
E.g. class name may not contain spaces (currently, an invalid class is created).

Add run instructions to README

cd dist
java -cp xmlpg.jar edu.nps.moves.xmlpg.Xmlpg <xml> <language>

Is it supposed to work without specifying the main class (it didn't for me)?

Fix XML format documentation

In general, the documentation in XMLPG.html is not really accessible. I would prefer to have it in the README.

  • document all possibilities of the XML format (e.g. defaultValue is missing)
  • fix documentation (e.g. fixed โ†’ fixedlist, variable โ†’ variablelist)

What makes it even worse: The DIS2012.xml file is not accepted by XMLPG.

Fix DIS2012.xml

The XML format does not match the one used by xmlpg. Also, the file should be linted.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.