|
Revision 7, 0.9 KB
(checked in by xi, 7 years ago)
|
|
Implement syck.parse() and syck.load() (closes #8).
Add basic scalar types to the resolver (partially closes #9).
|
| Line | |
|---|
| 1 | --- |
|---|
| 2 | test1: !mytype | |
|---|
| 3 | data |
|---|
| 4 | --- |
|---|
| 5 | - |
|---|
| 6 | !mytype | |
|---|
| 7 | data |
|---|
| 8 | --- |
|---|
| 9 | - !binary | |
|---|
| 10 | 11111111111111111 |
|---|
| 11 | |
|---|
| 12 | --- |
|---|
| 13 | test: Omap |
|---|
| 14 | yaml: | |
|---|
| 15 | # Explicitly typed dictionary. |
|---|
| 16 | Bestiary: !omap | |
|---|
| 17 | - aardvark: African pig-like ant eater. Ugly. |
|---|
| 18 | - anteater: South-American ant eater. Two species. |
|---|
| 19 | - anaconda: South-American constrictor snake. Scary. |
|---|
| 20 | # Etc. |
|---|
| 21 | ruby: | |
|---|
| 22 | { |
|---|
| 23 | 'Bestiary' => YAML::Omap[ |
|---|
| 24 | 'aardvark', 'African pig-like ant eater. Ugly.', |
|---|
| 25 | 'anteater', 'South-American ant eater. Two species.', |
|---|
| 26 | 'anaconda', 'South-American constrictor snake. Scary.' |
|---|
| 27 | ] |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | --- !test |
|---|
| 31 | - 1 |
|---|
| 32 | - 2 |
|---|
| 33 | --- !test > |
|---|
| 34 | test |
|---|
| 35 | --- |
|---|
| 36 | - !binary | |
|---|
| 37 | R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5 |
|---|
| 38 | OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+ |
|---|
| 39 | +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC |
|---|
| 40 | AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs= |
|---|