Files
marqdo/tests/structure/inherit-explicit-super.mq.md
T
cflmyandCursor 687c168014 feat(parse): use nested YAML import: maps instead of one-liner binds
Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target
entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the
old one-liner form, and migrate lib/ext/examples/tests/docs accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 19:33:58 +08:00

566 B

title, import
title import
inherit explicit parent constructor
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