You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+79-19Lines changed: 79 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,12 @@
1
1
# GraphQL.NET Parser
2
2
3
-
[](https://github.com/graphql-dotnet/parser/actions/workflows/publish-release.yml)
4
-
[](https://github.com/graphql-dotnet/parser/actions/workflows/publish-preview.yml)
5
-
6
-
[](https://github.com/graphql-dotnet/parser/actions/workflows/test.yml)
This library contains a lexer and parser as well as the complete [GraphQL AST model](http://spec.graphql.org/October2021/#sec-Appendix-Grammar-Summary)
@@ -70,15 +63,82 @@ Default implementation traverses all AST nodes of the provided one. You can
70
63
inherit from it and override desired methods to implement your own AST
71
64
processing algorithm.
72
65
66
+
### SDLPrinter
67
+
73
68
For printing SDL from AST, you can use `SDLPrinter`. This is a highly
74
69
optimized visitor for asynchronous non-blocking SDL output into provided
75
70
`TextWriter`. In the majority of cases it does not allocate memory in
76
-
the managed heap at all.
71
+
the managed heap at all. Extension methods are also provided for printing
72
+
directly to a string, which utilize the `StringBuilder` and `StringWriter`
73
+
classes.
74
+
75
+
```csharp
76
+
vardocument=Parser.Parse("query { hero { name age } }");
0 commit comments