A stack-based, type-safe programing language
npm install typestack-langA stack-based, type-safe language
> Warning
> This is a work in progress language
``bash`
npm install typestack-lang -g
`bash`tsk is the file extension for typestack
typestack filename.tsk
Download the extension to provide language support to .tsk files.
`bash`
npm install typestack-lang
`js
import typestack from "typestack-lang/dist/index.js";
await typestack(
100 for loop {
dup 15 % 0 ==
if {
"FizzBuzz" print drop
} else {
int dup 5 % 0 ==
if {
"Buzz" print drop
} else {
int dup 3 % 0 ==
if {
"Fizz" print drop
} else {
int print
}
}
}
});`
`python`
100 for loop {
dup 15 % 0 ==
if {
"FizzBuzz" print drop
} else {
int dup 5 % 0 ==
if {
"Buzz" print drop
} else {
int dup 3 % 0 ==
if {
"Fizz" print drop
} else {
int print
}
}
}
}
`pythonmake the random number
1 100 rand