KV Meta Sintaxis

KV Meta Sintaxis

KV Meta Syntaxis

Meta Syntax is a compact grammar notation designed as a devtool for developing my programming language. It defines the structure of a language using human-friendly symbols and supports features like rule analysis, visualization, and example code generation.

Syntax Notation

NotationDefinition
:Define rule
|Sequence of alternatives (one of)
{}Repetition (zero or more)
[]Optional
()Grouping
CAPITALIZED
or
"quoted"
Terminal
;
or
/; ... ;/
Inline or multiline comment

Rule Analysis

The system automatically analyzes all rules to detect potential structural or logical issues in the grammar.

  • Undefined: The rule references another that is not declared.
  • Unreachable: The rule is never used by any other rule.
  • Cycling: The rule depends on itself through a closed chain of other rules.
  • Recursive: The rule directly references itself, often used for nested or repeating structures.

Visualization

Each rule can be represented as a railroad diagram for a clear, graphical understanding of the grammar flow. Recursive rules are displayed as loops that reconnect to their origin instead of endlessly expanding.

Example Generator

The generator creates random or structured example code snippets following the defined grammar. Only Terminal symbols are used for actual text output.