glyphic-language / syntax /grammar_examples.md
UnconditionalLove's picture
Upload 97 files
ed6bec6 verified

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.