Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YAML parsing in Google Dart?

Tags:

yaml

dart

I do not see any mention of YAML parsing capabilities anywhere in the docs. I can't also find any YAML parser libraries in the Internet, then I found this:

http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/utils/pub/yaml/?r=7264

I guess I either make one myself or I copy the code from that repository -- or is there some way to use the package manager to install that YAML library?

Clearly that is a working YAML parser library:

library yaml;

How would I install this library?

like image 671
Tower Avatar asked Dec 09 '25 21:12

Tower


2 Answers

Try this

import '/Users/alex/my/src/dart/dart/utils/pub/yaml/yaml.dart';

whereby "/Users/alex/my/src/dart" is my local Dart repository clone.

like image 126
Alex Avatar answered Dec 12 '25 14:12

Alex


It has now been added as pub repository: http://pub.dartlang.org/packages/yaml

like image 45
enyo Avatar answered Dec 12 '25 14:12

enyo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!