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.
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
48
49
+
### Parsing a file
50
+
49
51
```python
50
52
import bblfsh
51
53
52
54
client = bblfsh.BblfshClient("localhost:9432")
53
55
ctx = client.parse("/path/to/file.py")
54
56
print(ctx)
55
-
# or to get the results in a dictionary:
56
-
resdict = ctx.get_all()
57
57
58
-
# "filter' allows you to use XPath queries to filter on result nodes:
58
+
# You can also get the non semantic UAST or native AST:
0 commit comments