mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
12 lines
236 B
Python
12 lines
236 B
Python
import os.path
|
|
|
|
import libfoolang
|
|
|
|
|
|
print('main.py: Running...')
|
|
|
|
ctx = libfoolang.AnalysisContext()
|
|
u = ctx.get_from_buffer('foo.txt', b'example')
|
|
print('Unit filename: {}'.format(os.path.basename(u.filename)))
|
|
print('main.py: Done.')
|