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.
Run a File
- Download the installer.bat from the releases tab or the dist library.
- run the installer as administrator
- run the command:
run
zephyr compile -r <filename>
--help
for more information
Error Handling
Error Codes:
- [101] -> Type doesn't have this function.
- [102] -> Unknown variable.
- [103] -> Keyboard interrupt
- [110] -> Current type doesn't support new value or new type.
- [201] -> Only PT type is pushable.
- [202] -> Invalid positional value.
- [203] -> Invalid return function.
- [204] -> Invalid condition or RNG range.
- [205] -> Unable to import library.
Example Error Message:
[110]: ERROR: {type} != {description} -> unsupported type!
{description} | {name} {base} {function}