source: pyyaml/trunk/tests/data/scalars.events @ 137

Revision 137, 1.3 KB checked in by xi, 8 years ago (diff)

Refactor resolver.

RevLine 
[129]1- !StreamStart
2
3- !DocumentStart
[130]4- !MappingStart
[137]5- !Scalar { implicit: [true,true], value: 'empty scalar' }
6- !Scalar { implicit: [true,false], value: '' }
7- !Scalar { implicit: [true,true], value: 'implicit scalar' }
8- !Scalar { implicit: [true,true], value: 'data' }
9- !Scalar { implicit: [true,true], value: 'quoted scalar' }
[129]10- !Scalar { value: 'data', style: '"' }
[137]11- !Scalar { implicit: [true,true], value: 'block scalar' }
[129]12- !Scalar { value: 'data', style: '|' }
[137]13- !Scalar { implicit: [true,true], value: 'empty scalar with tag' }
14- !Scalar { implicit: [false,false], tag: '!mytag', value: '' }
15- !Scalar { implicit: [true,true], value: 'implicit scalar with tag' }
16- !Scalar { implicit: [false,false], tag: '!mytag', value: 'data' }
17- !Scalar { implicit: [true,true], value: 'quoted scalar with tag' }
18- !Scalar { value: 'data', style: '"', tag: '!mytag', implicit: [false,false] }
19- !Scalar { implicit: [true,true], value: 'block scalar with tag' }
20- !Scalar { value: 'data', style: '|', tag: '!mytag', implicit: [false,false] }
21- !Scalar { implicit: [true,true], value: 'single character' }
22- !Scalar { value: 'a', implicit: [true,true] }
23- !Scalar { implicit: [true,true], value: 'single digit' }
24- !Scalar { value: '1', implicit: [true,false] }
[130]25- !MappingEnd
[129]26- !DocumentEnd
27
28- !StreamEnd
Note: See TracBrowser for help on using the repository browser.