ArkScript is a programming language created in 2019 by Alexandre Plateau and Pierre Pharel and Natendrtfm.
git clone https://github.com/ArkScript-lang/Ark
#708on PLDB | 4Years Old |
ArkScript is a small, fast, functional and scripting language for video games.
{
# more or less game
(print "More or less game!")
(import "random.bin")
(import "Math/Arithmetic.ark")
(let number (mod (abs (random)) 10000))
(mut value 0)
(mut essais 0)
(mut continue true)
(while continue {
(set value (toNumber (input "Input a numeric value: ")))
(if (< value number)
# then
(print "More!")
# else
(if (= value number)
# then
{ (print "Bingo!") (set continue false) }
# else
(print "Less!")))
(set essais (+ 1 essais))})
(print "You won in " essais " tries")
}
(print "Hello World")
Feature | Supported | Token | Example |
---|---|---|---|
Booleans | ✓ | true false | |
Strings | ✓ | " | "Hello world" |
Print() Debugging | ✓ | ||
Comments | ✓ | # A comment |
|
Line Comments | ✓ | # | # A comment |
Semantic Indentation | X |