added ability to set anchors/ref in parser or  to get it

It is very needed when someone has custom yaml file loader with imports.
Now there is no way that parser has known mappings or scalars from imported files.