Top 1,000 Features Creators Resources Blog Explore Download
GitHub icon

ArkScript

< >

ArkScript is a programming language created in 2019 by Alexandre Plateau and Pierre Pharel and Natendrtfm.

Source code:
git clone https://github.com/ArkScript-lang/Ark
#435on PLDB 5Years Old

ArkScript is a small, fast, functional and scripting language for C++ projects


Example from the web:
{ # 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") }
Example from hello-world:
(print "Hello World")

Language features

Feature Supported Token Example
Booleans ✓ true false
Strings ✓ "
"Hello world"
Print() Debugging ✓ print
Comments ✓
# A comment
Line Comments ✓ #
# A comment
Semantic Indentation X

View source

- Build the next great programming language · About · Acknowledgements · Extensions · Day 625 · feedback@pldb.io