Files
langkit/contrib/python
Pierre-Marie de Rodat 8817669523 Revert "contrib/python: do not use Ignore in the lexer"
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
2020-01-08 11:58:04 +01:00
..

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