Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

ArkScript

< >

ArkScript is an open source programming language created in 2019 by Alexandre Plateau and Pierre Pharel and Natendrtfm.

#423on PLDB 5Years Old
Download source code:
git clone https://github.com/ArkScript-lang/Ark
Homepage · Source Code · Docs

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


Example from the web:
(import std.random) (import std.Math) (let number (mod (math:abs (random)) 10000)) (let game (fun () { (let impl (fun (tries) { (let guess (toNumber (input "Input a numeric value: "))) (if (< guess number) { (print "It's more than " guess) (impl (+ tries 1))} (if (= guess number) { (print "You found it!") tries } { (print "It's less than " guess) (impl (+ tries 1))}))})) (let tries (impl 0)) (print "You won in " tries " tries.")})) (game)
Example from hello-world:
(print "Hello World")

Language features

Feature Supported Example Token
Booleans ✓ true false
Strings ✓ "Hello world" "
Print() Debugging ✓ print
File Imports ✓ (import std.List) (import std.Math :max)
Comments ✓ # A comment
Line Comments ✓ # A comment #
Semantic Indentation X

HackerNews discussions of ArkScript

title date score comments
Show HN: ArkScript, a small and fast language for scripting video games 03/26/2020 101 42
Show HN: An Online Playground for ArkScript 06/16/2024 1 1
- Build the next great programming language · Add · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements · Part of the World Wide Scroll