Files
langkit/contrib/python/manage.py
Pierre-Marie de Rodat 736b3ee3a6 Make libpythonlang and liblktlang standalone
Since nowadays Langkit itself depends on both libraries to do its work
and since both libraries use `Langkit_Support`, the standalone mode is
necessary to allow Langkit developpers to use Langkit testcases to check
and debug (potentially very buggy) patches on `Langkit_Support`.
2023-06-23 13:02:58 +00:00

24 lines
565 B
Python
Executable File

#! /usr/bin/env python
from langkit.libmanage import ManageScript
class Manage(ManageScript):
ENABLE_BUILD_WARNINGS_DEFAULT = True
def create_context(self, args):
from langkit.compile_context import CompileCtx
from language.lexer import python_lexer
from language.parser import python_grammar
return CompileCtx(lang_name='Python',
lexer=python_lexer,
grammar=python_grammar,
standalone=True)
if __name__ == '__main__':
Manage().run()