Domain Specific Language, Standard File Format

azeem

New Member
XML is a good file format for storing documents: content with metadata. JSON is a good file format for storing data.Is there an analogous file format standard which is good at encoding operations? In other words, is there a standard file format which would be good for encoding small light-weight domain-specific languages? What I have in mind are simple DSLs consisting of only string data and no more than a dozen simple commands. My languages would consist of calling one command after another in a very simple manner (no conditionals or loops).Currently, I've used XML to encode a series of operations, where each tag represents a different command. A SAX parser dispatches each element as a function call. It's very difficult to look at; just doesn't feel like an elegant solution.Ideally, I'd be working in python and not writing my own parsers...trying to get the benefit of using an established standard file format. One fallback is to use python itself, but of course I'd prefer a language-neutral standard if one is to be found.
 
Back
Top