A simple programming/scripting language build with javascript
Clone the project
git clone https://github.com/YigitGunduc/cycle.git
Go to the project directory
cd cycle
Run your script
node src/index.js filename.cyc
or
./cycle filename.cyc
a <- 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.