A simple programming/scripting language build with javascript
Clone the project
git clone https://github.com/YigitGunduc/cycle.gitGo to the project directory
cd cycleRun your script
node src/index.js filename.cycor
./cycle filename.cyca <- 1 to 10 : p(a) // for loops
p(a) // printing a variable
a = 123 // assingment
a == 123 ? a = 3 : p(a) // if statments
p(a) // printing a variable<variable> <=> <digit>
//example
a = 123<p(> <variable> <)>
//example
p(a)<varibale> <==> <digit> <?> <true case> <:> <false case>
// example
a == 123 ? a = 3 : p(a) <varibale> < <- > <digit> <to> <digit> <:> <do every iteration>
// example
a <- 1 to 10 : p(a) -
Support for variable to varibale comparasion
-
Support more keywords
-
Fix end of file error
Any contributions you make are greatly appreciated.