Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neonxp/nyaml
YAML like parser
https://github.com/neonxp/nyaml
Last synced: about 1 month ago
JSON representation
YAML like parser
- Host: GitHub
- URL: https://github.com/neonxp/nyaml
- Owner: neonxp
- Created: 2012-02-12T01:27:13.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-08-28T14:04:01.000Z (over 12 years ago)
- Last Synced: 2023-03-22T15:34:28.931Z (almost 2 years ago)
- Language: PHP
- Homepage:
- Size: 93.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
NYAML (NotYAML) - YAML like markup language.
=============It more clean and (in future :) ) more powerful than YAML.
Author: Alexander "NeonXP" Kiryukhin ([email protected])
License: GPLv2Example 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]
)
)
)