Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

jonaskohl/UMFParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

UMFParser

A parser of my own UMF file format.

What is UMF?

UMF stands for Universal Manifest Format. It is a manifest and settings file format with type declaration.
Sample file:

#!%UMF File Format 1.0

# This is a sample file

string		"name"		"My project"
string		"developer"	"TheDev"
string		"license"	"MIT License"
string		"website"	"http://example.com/"
array<number>	"version"	(1, 0, 0, 0)

The whitespace inbetween does not matter.

All available types

# This is a comment
string "NameOfString" "Value"
number "NameOfNumber" 4.02
boolean "NameOfBoolean" true
array<number> "NameOfNumberArray" (0, 1, 2)
array<string> "NameOfStringArray" ("test1", "test2", "test3")
array<boolean> "NameOfBoolArray" (true, false, false, true)

Parse & build

You can create or read these files using the included PHP library UMFParse.php. See the examples/ directory for usage.

Releases

No releases published

Packages

No packages published

Languages