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`.
This commit is contained in:
Pierre-Marie de Rodat
2023-06-23 12:23:03 +00:00
parent 967ac5f14a
commit 736b3ee3a6
4 changed files with 10 additions and 10 deletions

View File

@@ -10,13 +10,11 @@ with GNAT.Traceback.Symbolic;
with GNATCOLL.Opt_Parse; use GNATCOLL.Opt_Parse;
with GNATCOLL.Traces;
with Langkit_Support.Diagnostics; use Langkit_Support.Diagnostics;
with Langkit_Support.Diagnostics.Output;
use Langkit_Support.Diagnostics.Output;
with Langkit_Support.Slocs; use Langkit_Support.Slocs;
with Langkit_Support.Text; use Langkit_Support.Text;
with Liblktlang_Support.Diagnostics; use Liblktlang_Support.Diagnostics;
with Liblktlang_Support.Diagnostics.Output;
use Liblktlang_Support.Diagnostics.Output;
with Liblktlang_Support.Slocs; use Liblktlang_Support.Slocs;
with Liblktlang_Support.Text; use Liblktlang_Support.Text;
with Liblktlang.Analysis; use Liblktlang.Analysis;
with Liblktlang.Common;

View File

@@ -1,4 +1,4 @@
with Langkit_Support.Text; use Langkit_Support.Text;
with Liblktlang_Support.Text; use Liblktlang_Support.Text;
with Liblktlang.Implementation; use Liblktlang.Implementation;

View File

@@ -36,7 +36,8 @@ class Manage(ManageScript):
grammar=lkt_grammar,
default_unit_provider=LibraryEntity(
'Liblktlang.Default_Provider', 'Create'
)
),
standalone=True,
)
def generate_prelude(self, emitter, context):

View File

@@ -15,7 +15,8 @@ class Manage(ManageScript):
return CompileCtx(lang_name='Python',
lexer=python_lexer,
grammar=python_grammar)
grammar=python_grammar,
standalone=True)
if __name__ == '__main__':