Files
marqdo/tests/structure/inherit-explicit-super.mq.md
T
cflmyandCursor bfb10d172b feat(markup): adopt v0.3 as sole mapping (** code, * return)
Make prose-unified Markup the only runtime: bold segments are executable,
italic is return, params can be inferred from body/prose, with no v0.2 dual
mode. Migrate lib and structure/keywords golds; gate on tests/markup-v03.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 20:38:53 +08:00

29 lines
562 B
Markdown

---
title: inherit explicit parent constructor
import json:lib/json.mq.md
---
# Parent
+ `name`
**out = > json.parse text={"role":"parent"}**
**out = > json.set map=`out` key="name" value=`name`**
*out*
# Child = > Parent
+ `name`
**self = > Parent name=`name`**
**self = > json.set map=`self` key="role" value="child"**
*self*
# main
**c = > Child name="Ada"**
**ty = > json.get value=`c` key="_type"**
**role = > json.get value=`c` key="role"**
**name = > json.get value=`c` key="name"**
> print text=`ty`
> print text=`role`
> print text=`name`