Files
langkit/contrib/python/manage.py
Pierre-Marie de Rodat ed8a12c302 Fix language name casings in manage.py scripts
... and do the necessary adjustments in the rest of the codebase.
2021-09-24 12:07:42 +02:00

23 lines
522 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)
if __name__ == '__main__':
Manage().run()