From 4609c73499db3465c6db81c0f669b7233f55983c Mon Sep 17 00:00:00 2001 From: Gunnar Andersson Date: Tue, 7 Jan 2025 16:57:17 +0100 Subject: [PATCH] Move Franca and generic translator to input_filters in new structure --- {other => input_filters}/franca/__init__.py | 0 {other => input_filters}/franca/franca_to_ifex.py | 6 +++--- {other => input_filters}/franca/print_franca_tree.py | 2 +- {other => input_filters}/franca/pyfranca | 0 {other/franca => transformers}/rule_translator.py | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename {other => input_filters}/franca/__init__.py (100%) rename {other => input_filters}/franca/franca_to_ifex.py (98%) rename {other => input_filters}/franca/print_franca_tree.py (97%) rename {other => input_filters}/franca/pyfranca (100%) rename {other/franca => transformers}/rule_translator.py (100%) diff --git a/other/franca/__init__.py b/input_filters/franca/__init__.py similarity index 100% rename from other/franca/__init__.py rename to input_filters/franca/__init__.py diff --git a/other/franca/franca_to_ifex.py b/input_filters/franca/franca_to_ifex.py similarity index 98% rename from other/franca/franca_to_ifex.py rename to input_filters/franca/franca_to_ifex.py index 63c5cb19..74a23dd7 100644 --- a/other/franca/franca_to_ifex.py +++ b/input_filters/franca/franca_to_ifex.py @@ -13,13 +13,13 @@ sys.path.append(os.path.join(mydir,p)) import models.ifex.ifex_ast as ifex -import other.franca.pyfranca.pyfranca as pyfranca -import other.franca.rule_translator as m2m +import input_filters.franca.pyfranca.pyfranca as pyfranca +import transformers.rule_translator as m2m import pyfranca.ast as franca import re from models.ifex.ifex_ast_construction import add_constructors_to_ifex_ast_model, ifex_ast_as_yaml -from other.franca.rule_translator import Preparation, Constant, Unsupported +from transformers.rule_translator import Preparation, Constant, Unsupported def translate_type_name(francaitem): return translate_type(francaitem) diff --git a/other/franca/print_franca_tree.py b/input_filters/franca/print_franca_tree.py similarity index 97% rename from other/franca/print_franca_tree.py rename to input_filters/franca/print_franca_tree.py index 60262af7..27627918 100644 --- a/other/franca/print_franca_tree.py +++ b/input_filters/franca/print_franca_tree.py @@ -15,7 +15,7 @@ sys.path.append(os.path.join(mydir,p)) import oyaml -import other.franca.pyfranca.pyfranca as pyfranca +import input_filters.franca.pyfranca.pyfranca as pyfranca from collections import OrderedDict def is_simple_type(t) -> bool: diff --git a/other/franca/pyfranca b/input_filters/franca/pyfranca similarity index 100% rename from other/franca/pyfranca rename to input_filters/franca/pyfranca diff --git a/other/franca/rule_translator.py b/transformers/rule_translator.py similarity index 100% rename from other/franca/rule_translator.py rename to transformers/rule_translator.py