Language Syntax - SharkBlocks00/Mrya GitHub Wiki

Mrya Language Syntax

This page documents the syntax of the Mrya programming language as it stands.


Variable Declerations

Variables are declared using the let keyword.

Syntax

let variableName = value
  • variableName should be a valid identifier.
  • value can be a string (in quotes) or a number.

Example

let greeting = "Hello, Mrya!"
let age = 25

Output Command

Mrya outputs text or variable values using the output() command.

Syntax

output(expression)
  • expression can be a string literal or a variable.

Example

output("Welcome to Mrya")
output(greeting)

Notes

  • Currently, Mrya supports only variable declarations and output commands.
  • Expressions inside output() must be a simple variable or a string literal.
  • Future versions will include expressions, arithmetic, conditionals, and loops.

If you have any further questions or suggestions, please open an issue!