From f3960d21a84d27a4657401671e6b0c9fc21020ff Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Sun, 21 Aug 2022 19:12:01 +0200 Subject: [PATCH] fix xmlwriter --- .../src/prog8/codegen/experimental/AstToXmlConverter.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/codeGenExperimental/src/prog8/codegen/experimental/AstToXmlConverter.kt b/codeGenExperimental/src/prog8/codegen/experimental/AstToXmlConverter.kt index 3c3ce62ae..d4dbd0623 100644 --- a/codeGenExperimental/src/prog8/codegen/experimental/AstToXmlConverter.kt +++ b/codeGenExperimental/src/prog8/codegen/experimental/AstToXmlConverter.kt @@ -114,6 +114,14 @@ class AstToXmlConverter(internal val program: PtProgram, node.address.toString(), false) } + StNodeType.MEMORYSLAB -> { + node as StMemorySlab + xml.elt("memoryslab") + xml.writeAttribute("name", node.name) + xml.writeAttribute("size", node.size.toString()) + xml.writeAttribute("align", node.align.toString()) + xml.endElt() + } StNodeType.CONSTANT -> { node as StConstant xml.writeTextNode("const",