Skip to content

Begginer Info

Syntax Overview

Basic Structure:

<VariableName> <base> <function>:<Argument1>|<Argument2>|...;
<--------------------------command------------------------->
  • VariableName: The name of the variable, user-defined.
  • base: The base of the variable, used to define its operation:
  • ?: For variable operations (e.g., modifying or retrieving values).
  • #: For declaring variables or changing their types.
  • function: The operation to execute on the variable (e.g., printing, defining a function).
  • arguments: Additional information passed to the function.
  • command: The entire statement.

Comments

adding a ~ in a line all text after the character will be ignored.

  • usage:
    a # PT:HelloWorld; ~ This is a comment
    ~ This is also a comment
    

File Extensions

  • .zph: Zephyr code file.
  • .zsrc: Zephyr source file for debugging.
  • .zpkg: Zephyr dumped variables file.

flowChart2

Run a File

  1. Download the installer.bat from the releases tab or the dist library.
  2. run the installer as administrator
  3. run the command:
    zephyr compile -r <filename>
    
    run --help for more information

Error Handling

Error Codes:

  1. [101] -> Type doesn't have this function.
  2. [102] -> Unknown variable.
  3. [103] -> Keyboard interrupt
  4. [110] -> Current type doesn't support new value or new type.
  5. [201] -> Only PT type is pushable.
  6. [202] -> Invalid positional value.
  7. [203] -> Invalid return function.
  8. [204] -> Invalid condition or RNG range.
  9. [205] -> Unable to import library.

Example Error Message:

[110]: ERROR: {type} != {description} -> unsupported type!
{description} | {name} {base} {function}