added -D command line option to define symbols in the assembly file

This commit is contained in:
Irmen de Jong
2022-07-06 23:40:36 +02:00
parent beea6bc794
commit b41779bd02
10 changed files with 48 additions and 3 deletions
@@ -144,6 +144,15 @@ class AstToXmlConverter(internal val program: PtProgram,
xml.endElt()
}
}
if(options.symbolDefs.isNotEmpty()) {
xml.startChildren()
options.symbolDefs.forEach { name, value ->
xml.elt("symboldef")
xml.attr("name", name)
xml.attr("value", value)
xml.endElt()
}
}
xml.endElt()
}