Adding bytes as a type

This commit is contained in:
Inte Vleminckx 2025-02-05 16:24:22 +01:00
parent 86cd7027f3
commit 98f36c4cf0
3 changed files with 10 additions and 4 deletions

View file

@ -4,7 +4,7 @@ from concrete_syntax.textual_od import parser, renderer
from services.scd import SCD
from util.timer import Timer
PRIMITIVE_TYPES = set(["Integer", "String", "Boolean", "ActionCode"])
PRIMITIVE_TYPES = set(["Integer", "String", "Boolean", "ActionCode", "Bytes"])
# Merges N models. The models must have the same meta-model.
# Care should be taken to avoid naming collisions before calling this function.
@ -12,7 +12,7 @@ def merge_models(state, mm, models: list[UUID]):
with Timer("merge_models"):
primitive_types = {
type_name : UUID(state.read_value(state.read_dict(state.read_root(), type_name)))
for type_name in ["Integer", "String", "Boolean", "ActionCode"]
for type_name in ["Integer", "String", "Boolean", "ActionCode", "Bytes"]
}
merged = state.create_node()