diff options
author | Alexander Kiryukhin <frei@neonxp.info> | 2012-02-12 05:46:28 +0400 |
---|---|---|
committer | Alexander Kiryukhin <frei@neonxp.info> | 2012-02-12 05:46:28 +0400 |
commit | 54b61f2c52ac53ec33f93fa45bd60cb8459e925d (patch) | |
tree | e1feb67c9137a9e1885b7d9558ee8c9cc4d614e7 | |
parent | c466516daa1af06e78ecc6730d3e224db19e5780 (diff) |
Initial commit
-rw-r--r-- | README.md | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..0a083e6 --- /dev/null +++ b/README.md @@ -0,0 +1,58 @@ +NYAML (NotYAML) - YAML like markup language. +============= + +It more clean and (in future :) ) more powerful than YAML. +Author: Alexander "NeonXP" Kiryukhin (frei@neonxp.info) +License: GPLv2 + +Example of correct NYAML file (test.nyaml): +------ + +node 1: + #this is node 1 + value 1 + node 2: + key1: value1 + key2: "value too" + key3: 'and this!' + node 3: + key1: [elements, [of,array]] + key2: "[this, is, not, array]" + +test.php: +------ + +<?php + include("nyaml.php"); + $nyaml = new nyaml(); + print_r($nyaml->file("test.nyaml")); + +Result: +------ + +Array +( + [node 1] => Array + ( + [0] => value 1 + [node 2] => Array + ( + [key1] => value1 + [key2] => value too + [key3] => and this! + ) + [node 3] => Array + ( + [key1] => Array + ( + [0] => elements + [1] => Array + ( + [0] => of + [1] => array + ) + ) + [key2] => [this, is, not, array] + ) + ) +) |