Skip to content

Instantly share code, notes, and snippets.

@refaktor
Created November 5, 2025 12:56
Show Gist options
  • Select an option

  • Save refaktor/7183a9d943780f074b1eee8e1333c475 to your computer and use it in GitHub Desktop.

Select an option

Save refaktor/7183a9d943780f074b1eee8e1333c475 to your computer and use it in GitHub Desktop.
Ryefied MAML format
; ---- setup.maml.rye
project: "MAML"
tags: [
"minimal"
"readable"
]
; A simple nested object
spec: dict {
version: 1
author: "Anton Medvedev"
}
; Array of objects
examples: [
dict {
name: "JSON" born: 2001
}
dict {
name: "MAML" born: 2025
}
]
notes: `
This is a multiline raw strings.
Keeps formatting as-is.
`
; ---- end of file
; In Rye Console / REPL then you can then
x> load %setup.maml.rye |context\pure :setup
[Context () "": 5 words - project, tags, spec, examples, notes, ]
x> cc setup , lc ; change context - like cd , list context - like ls
Context:
examples [Block: ^[Dict (): name: [String: JSON] born: [Integer: 2001] ] [Dict (): name: [String: MAML] born: [Integer: 2025] ] ]
notes [String:
This is a multiline raw strings.
Keeps formatting as-is.
]
project [String: MAML]
spec [Dict (): version: [Integer: 1] author: [String: Anton Medvedev] ]
tags [Block: ^[String: minimal] [String: readable] ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment