2026-02-09 22:06:25 +00:00
|
|
|
==================
|
|
|
|
|
Simple character
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
character Alice {
|
|
|
|
|
age: 7
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(source_file
|
|
|
|
|
(declaration
|
2026-02-14 17:43:26 +00:00
|
|
|
(character_declaration
|
2026-02-09 22:06:25 +00:00
|
|
|
name: (identifier)
|
2026-02-14 17:43:26 +00:00
|
|
|
body: (character_body
|
2026-02-09 22:06:25 +00:00
|
|
|
(field
|
|
|
|
|
name: (dotted_path (identifier))
|
|
|
|
|
value: (value (integer)))))))
|
|
|
|
|
|
|
|
|
|
==================
|
|
|
|
|
Use declaration
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
use schema::core::Item;
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(source_file
|
|
|
|
|
(declaration
|
|
|
|
|
(use_declaration
|
|
|
|
|
(path_segments
|
|
|
|
|
(identifier)
|
|
|
|
|
(identifier)
|
|
|
|
|
(identifier)))))
|
|
|
|
|
|
|
|
|
|
==================
|
|
|
|
|
Prose block
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
character Bob {
|
|
|
|
|
---backstory
|
|
|
|
|
This is Bob's story.
|
|
|
|
|
---
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(source_file
|
|
|
|
|
(declaration
|
2026-02-14 17:43:26 +00:00
|
|
|
(character_declaration
|
2026-02-09 22:06:25 +00:00
|
|
|
name: (identifier)
|
2026-02-14 17:43:26 +00:00
|
|
|
body: (character_body
|
2026-02-09 22:06:25 +00:00
|
|
|
(field
|
|
|
|
|
(prose_block
|
|
|
|
|
marker: (prose_marker)
|
|
|
|
|
tag: (identifier)
|
|
|
|
|
content: (prose_content)
|
|
|
|
|
end: (prose_marker)))))))
|