From 6e24a48992a0aecf0a6b5d33d9c7f6f3c1790aa8 Mon Sep 17 00:00:00 2001 From: Juergen Bocklage-Ryannel Date: Wed, 7 Mar 2018 19:05:49 +0100 Subject: By default qface support the full profile. Also outputs the choosen language profile. --- qface/idl/listener.py | 5 +++-- qface/idl/profile.py | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qface/idl/listener.py b/qface/idl/listener.py index 7c3010e..0d1ad1b 100644 --- a/qface/idl/listener.py +++ b/qface/idl/listener.py @@ -22,8 +22,9 @@ contextMap = {} class QFaceListener(TListener): - def __init__(self, system, profile=EProfile.BASIC): + def __init__(self, system, profile=EProfile.ALL): super().__init__() + click.secho('qface uses language profile: {}'.format(profile), fg='blue') self.lang_features = get_features(profile) self.system = system or System() # type:System @@ -39,7 +40,7 @@ class DomainListener(QFaceListener): domain data struture. As a result a system is passed back""" - def __init__(self, system, profile=EProfile.BASIC): + def __init__(self, system, profile=EProfile.ALL): super().__init__(system, profile) contextMap.clear() self.module = None # type:Module diff --git a/qface/idl/profile.py b/qface/idl/profile.py index 24c6be2..433f193 100644 --- a/qface/idl/profile.py +++ b/qface/idl/profile.py @@ -42,4 +42,3 @@ _profiles = { def get_features(name): return _profiles.get(name, set()) - -- cgit v1.2.3