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
{{ message }}
This repository was archived by the owner on Mar 8, 2020. It is now read-only.
List of all available drivers you can find at the [official documentation](https://doc.bblf.sh/languages.html).
53
+
54
+
47
55
Please, read the [getting started](https://doc.bblf.sh/using-babelfish/getting-started.html) guide to learn more about how to use and deploy a bblfshd.
48
56
49
57
### Parsing a file
@@ -79,7 +87,7 @@ for node in it:
79
87
doSomething(node.get())
80
88
```
81
89
82
-
XPath queries can return different types (`dict`, `int`, `float`, `bool` or `str`),
90
+
XPath queries can return different types (`dict`, `int`, `float`, `bool` or `str`),
83
91
calling `get()` with an item will return the right type, but if you must ensure
84
92
that you are getting the expected type (to avoid errors in the queries) there
85
93
are alternative typed versions:
@@ -92,7 +100,7 @@ z = next(ctx.filter("count(//*)")).get_int() # or get_float()
92
100
93
101
### Iteration
94
102
95
-
You can also iterate using iteration orders different than the
103
+
You can also iterate using iteration orders different than the
96
104
default pre-order using the `iterate` method on `parse` result or node objects:
97
105
98
106
```python
@@ -104,14 +112,14 @@ for node in it:
104
112
# Over filter results (which by default are already iterators with PRE_ORDER):
105
113
ctx = client.parse("file.py")
106
114
it = ctx.filter("//python:Call").iterate(bblfsh.TreeOrder.LEVEL_ORDER)
107
-
for node in it:
115
+
for node in it:
108
116
print(node)
109
117
110
118
# Over individual node objects to change the iteration order of
0 commit comments