1.1.5 • Published 9 years ago
zor v1.1.5
Zor
This is the compiler for the Zor programming language.
Installation
npm install zor
Commands and Usage
zor run input.zorto run input.zor.zor build input.zorto compile input.zor to input.js file.zor build input.zor customfile.jsto compile input.zor to customfile.js file.
Syntax
variable = expression;=let variable = expression;orvariable = expression;{(condition)...}=if (condition){...}{?(condition)...}=else if (condition){...}{?...}=else {...}[(condition)...]=while (condition){...}# expression;=console.log(expression);<functionName(args)...>=function functionName(args){...}@functionName(args);=functionName(args);$ expression;=return expression;
Important Notes
- An 
expressionconsists of any set ofliterals, variables, conditions, and/or function callsoperated among using+-*/^%=!><&|that currently only evaluates to anumber, boolean, or stringdata type. Other types will soon be added. Example:"Here's a cool number: " + (@getNumber(5, 2.3) + (a+2*2)) - A 
conditionis a comparison between2 or more expressionsusing=!><&|that evaluates to aboolean type. Example:(index*2)-5 > @getNumber(5, 2.3).