platform/example/boolean.dart

13 lines
287 B
Dart
Raw Normal View History

2017-01-25 04:28:09 +00:00
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);
}