Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.
/ USF Public archive

USF-File format – parser for Java β€” β˜•οΈπŸ“¦

License

Notifications You must be signed in to change notification settings

kimbtech/USF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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=
]