Glyphic Language β Grammar Examples
This document provides clear examples of valid and invalid glyph sequences based on the strict syntax rules and BNF grammar of the Glyphic Language.
1. Basic Valid Examples
1.1 Actor + Action π€ π 1.2 Action + Object πΉ π― 1.3 Object + Modifier π β¨ 1.4 Object + Context πͺ¨ ποΈ
2. Full Scene Examples
2.1 Actor + Action + Object + Context π§ βοΈ π π‘ π Meaning: A girl writing a page at home at sunrise.
2.2 Action + Object + Modifiers + Context π₯ πͺ΅ β¨ π¨ π² π Meaning: Fire burning wood intensely in a windy forest at night.
2.3 Actor + Action + Object + Emotion + Social π€ π€ π§Ί π π§βπ€βπ§ Meaning: A person sharing a basket happily within a group.
3. ContextβHeavy Examples
3.1 Place + Time + Emotion ποΈ π π 3.2 Full Context Stack ποΈ π π π¬οΈ π§βπ€βπ§
4. Invalid Examples (with explanations)
4.1 Context before object π πͺ¨ INVALID β time context cannot precede object
4.2 Modifier after context π π‘ β¨ INVALID β modifiers must appear before context
4.3 Multiple actions π€ π βοΈ INVALID β only one action allowed
4.4 Social before sensory π§βπ€βπ§ π¬οΈ INVALID β social context must come last
5. Reversibility Examples
5.1 Encoding and decoding match Input: π€ π ποΈ Output: π€ π ποΈ
5.2 Canonical ordering enforced input meaning (unordered): { "object": "π", "actor": "π€", "action": "βοΈ", "context": { "time": ["π"] } } Encoded output: π€ βοΈ π π
6. Complex Scene Examples
6.1 Symbolic + Emotional π± β¨ π π Meaning: A symbolic sprout glowing peacefully under the night sky.
6.2 Multiβlayered context π€ π§ π β¨ ποΈ π π π¬οΈ π§βπ€βπ§ Meaning: A person meditating with a leaf in a bright, peaceful, breezy morning among others.
These examples serve as a reference for developers, LLM trainers, and agent designers working with the Glyphic Language.