Xupl

xupl is a human-readable data format designed to be structurally equivalent to XML yet representationally similar to C-style programming languages.

Features

xupl syntax is designed with the same goals as XML[1] yet be easily created and read by humans while leveraging the machine-readable toolset of XML and the IDE tools of many high-level languages.

Examples

Sample document

note: to: "Tove". from: "Jani". heading: "Reminder". body: "Don't forget me this weekend!"

Alternatively:

note {
  to: "Tove"
  from: "Jani"
  heading {"Reminder"}
  body {"Don't forget me this weekend!"}
}

Language elements

Basic components of xupl

Attributes

Attributes are specified as a comma-separated list of name-value or value-name pairs.

html lang "en", "RTL" dir:
  head{title:"My xupl"}
  body:
    a "/nicerobot/text-plain/wiki/xupl":"xupl"

Advanced components of xupl

xupl doesn't require closing tags at the end of the document. This facilitates limited streaming of content into a document. To facilitate terse documents and demonstrated by the HTML example above, one attribute name per tag (and per namespace) is optional for which the xupl parser will provide the default name.

XML and SDL

xupl is syntactically similar to SDL (Simple Declarative Language)[2] but differs fundamentally in that xupl provides an exact but alternative representation of any XML document.

Bindings

Native implementations and bindings for xupl exist for the following languages:

gollark: Also, you can just stop it after n seconds, presumably.
gollark: The AI is very optimal. I've improved it slightly.
gollark: lescitronsnss.snsns.
gollark: I spontaneously apified.
gollark: Not particularly.

See also

  • Comparison of data serialization formats
  • List of lightweight markup languages

Other human-readable serialization formats include:

References

  1. "XML 1.0 Origin and Goals". Retrieved July 2009. Check date values in: |accessdate= (help)
  2. "Simple Declarative Language for Ruby - Documentation". Retrieved 24 February 2014.

Further reading

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.