mirror of
https://github.com/AdaCore/uwrap.git
synced 2026-02-12 13:06:34 -08:00
21 lines
479 B
Python
Executable File
21 lines
479 B
Python
Executable File
#! /usr/bin/env python
|
|
|
|
import os
|
|
|
|
from langkit.libmanage import ManageScript
|
|
|
|
|
|
class Manage(ManageScript):
|
|
def create_context(self, args):
|
|
from langkit.compile_context import CompileCtx
|
|
|
|
from language.lexer import test_lexer
|
|
from language.parser import test_grammar
|
|
|
|
return CompileCtx(lang_name='Test',
|
|
lexer=test_lexer,
|
|
grammar=test_grammar)
|
|
|
|
if __name__ == '__main__':
|
|
Manage().run()
|