Files
Pierre-Marie de Rodat 2b9b33d6a0 Remove __future__ imports and adjust stylechecks
TN: T511-017
2020-05-26 12:33:48 +02:00

11 lines
230 B
Python

import libfoolang
ctx = libfoolang.AnalysisContext()
unit = ctx.get_from_buffer('foo.txt', b'example example')
for node in [unit.root, unit.root[0]]:
print('bool({}) = {}'.format(node, bool(node)))
print('main.py: Done.')