mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
This reverts commit 8d8137610a.
This change had unintended consequences: the indentation tracking
machinery interacts interfers with the trivia production for
whitespaces, breaking Python code parsing. Revert for now, until we have
a plan to more forward. This change was mostly cosmetic anyway (no real
need to preserve whitespaces for the Python parser).
TN: T107-050
Python parser
This is a Python parser written on top of Langkit. It is meant as a full example of what can be done with Langkit in terms of parsing, besides Libadalang itself.
Build
$ ./manage.py make
Parse python
build/bin/parse -f my_python_file.py