mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user