platform/example/boolean.dart
2017-01-24 23:28:09 -05:00

12 lines
287 B
Dart

import 'dart:async';
import 'package:graphql_parser/src/language/language.dart';
Stream<String> input() async* {
yield 'true';
}
main() async {
var lexer = new Lexer(), parser = new Parser();
input().transform(lexer).pipe(parser);
await parser.onBooleanValue.forEach(print);
}