ludic schema: a components section and a natives list (R4)
Each UI component: module, place, doc, xml and lss paths, props and state (type, default as written, place, doc), states_read (the header's states), derived fields with their types, functions and events as the template calls them (states and instance stripped), and the native tags its template uses. natives: every ui_native / ui_native_input call with a literal tag - tag, via, handler, place. schema_version stays 1; the lists are additions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
28f7b4666b
commit
281ebc23e1
11 changed files with 80436 additions and 71227 deletions
|
|
@ -14,6 +14,9 @@ function cm_class(c: int, px: pointer, head: Node) -> void {
|
|||
lss = ""
|
||||
lss_at = ""
|
||||
} else { lss = cm_lss_inline(c, lss, dir, 0) }
|
||||
g_cm_xml_path[c] = xml_path
|
||||
g_cm_lss_path[c] = lss_at
|
||||
g_cm_xml[c] = xml
|
||||
var src = `function {px}class() -> UiClass {{\n let k = new UiClass\n k.name = "{name}"\n`
|
||||
src = src + ` k.xml_path = "{xml_path}"\n k.xml = {px}xml_text()\n k.lss_path = "{lss_at}"\n k.lss = {px}lss_text()\n`
|
||||
src = src + ` k.make = fn {px}new\n k.renew = fn {px}renew\n k.props = fn {px}props\n k.model = fn {px}model\n k.call = fn {px}call\n return k\n}}\n`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue