Support string_scanner 1.0.0.
Support string_scanner 1.0.0.

R=kevmoo@google.com, cbracken@google.com

Review URL: https://codereview.chromium.org//2085783002 .
2 files changed
tree: 5190c566f255e6e472fe5217bc8bec93011eccd8
  1. .analysis_options
  2. .gitignore
  3. .test_config
  4. CHANGELOG.md
  5. LICENSE
  6. README.md
  7. benchmark/
  8. codereview.settings
  9. lib/
  10. libyaml-license.txt
  11. pubspec.yaml
  12. test/
README.md

A parser for YAML.

Use loadYaml to load a single document, or loadYamlStream to load a stream of documents. For example:

import 'package:yaml/yaml.dart';

main() {
  var doc = loadYaml("YAML: YAML Ain't Markup Language");
  print(doc['YAML']);
}

This library currently doesn't support dumping to YAML. You should use JSON.encode from dart:convert instead:

import 'dart:convert';
import 'package:yaml/yaml.dart';

main() {
  var doc = loadYaml("YAML: YAML Ain't Markup Language");
  print(JSON.encode(doc));
}