USF-File format – parser for Java β€” β˜•οΈπŸ“¦
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
.travis.yml
LICENSE
README.md
pom.xml

README.md

USF

Undead(Game)StorageFormat

USF-File format – parser for Java

Build Status Coverage Status

USF is a JSON-like file format allowing to store basic data types in Lists, Pairs and multiple nesting of these.

See the Wiki for examples and JavaDoc for documentation.

Data-Types

All USF-Data-Types are subclasses of the main USF-Data-Type called Atom.

  • Basic Data Types
    • String
    • Boolean
    • Integer
    • Real
      • a double data type
  • Structures
    • List
      • combining multiple Atoms
    • Pair
      • combining two Atoms
  • Higher Level Types
    • MapList
      • combining multiple Key-Value pairs

USF Format

The normal USF Format is a one-line string, which contains all the data.

[true,[false,100,20,-12,{\"test\":{\"a\":false}},{{:}:{[true,true]:-12}}],=1.0=,=-11.02=]

For debugging and other cases one can use the human friendly output. (Method toHumFrieUSF() instead of toUSF() and parseHumFrie() instead of parse())

[
	true,
	[
		false,
		100,
		20,
		-12,
		{
			"test"
		:
			{
				"a"
			:
				false
			}
		},
		{
			{:}
		:
			{
				[
					true,
					true
				]
			:
				-12
			}
		}
	],
	=1.0=,
	=-11.02=
]