--- &test-JS2J
Title: Spec Example 6.29. Node Anchors
Tags: [ alias, spec ]
First occurrence: &anchor Value
Second occurrence: *anchor
+STR
+DOC
+MAP
=VAL :First occurrence
=VAL &anchor :Value
=VAL :Second occurrence
=ALI *anchor
-MAP
-DOC
-STR
{
"First occurrence": "Value",
"Second occurrence": "Value"
}
na
Line Col Char Byte Token|Content
1 0 0 0 +DOC |
1 0 0 0 +NODE|
1 0 0 0 +MAP |
1 0 0 0 +PAIR|
1 0 0 0 +NODE|
1 0 0 0 +VAL |
1 0 0 0 =TEXT|First.occurrence
1 16 16 16 -VAL |
1 16 16 16 -NODE|
1 16 16 16 =SYNX|:
1 17 17 17 =WSPC|.
1 18 18 18 +NODE|
1 18 18 18 +PROP|
1 18 18 18 +ANCH|
1 18 18 18 =SYNX|&
1 19 19 19 =META|anchor
1 25 25 25 -ANCH|
1 25 25 25 -PROP|
1 25 25 25 =WSPC|.
1 26 26 26 +VAL |
1 26 26 26 =TEXT|Value
1 31 31 31 -VAL |
1 31 31 31 -NODE|
1 31 31 31 =EOL |\x0a
2 0 32 32 -PAIR|
2 0 32 32 +PAIR|
2 0 32 32 +NODE|
2 0 32 32 +VAL |
2 0 32 32 =TEXT|Second.occurrence
2 17 49 49 -VAL |
2 17 49 49 -NODE|
2 17 49 49 =SYNX|:
2 18 50 50 =WSPC|.
2 19 51 51 +NODE|
2 19 51 51 +ALI |
2 19 51 51 =SYNX|*
2 20 52 52 =META|anchor
2 26 58 58 -ALI |
2 26 58 58 -NODE|
2 26 58 58 =EOL |\x0a
3 0 59 59 -PAIR|
3 0 59 59 -MAP |
3 0 59 59 -NODE|
3 0 59 59 -DOC |
na
{
'First occurrence' => 'Value',
'Second occurrence' => 'Value'
}
na
{
'First occurrence' => 'Value',
'Second occurrence' => 'Value'
}
na
{
'First occurrence' => 'Value',
'Second occurrence' => 'Value'
}
na
{
'First occurrence' => 'Value',
'Second occurrence' => ${\$VAR1->{'First occurrence'}}
}
na
{
'First occurrence' => 'Value',
'Second occurrence' => 'Value'
}
na
{'First occurrence': 'Value', 'Second occurrence': 'Value'}
na
{'First occurrence': 'Value', 'Second occurrence': 'Value'}
ni
YAML::Tiny does not support a feature in line '&anchor Value' at /yaml/bin/perl-tiny-json line 12.
ni
YAML::Tiny does not support a feature in line '&anchor Value' at /yaml/bin/perl-tiny-perl line 15.