1
0
Fork 0
forked from fun/fun

Added namespaces to includes like in Python. (0.14.0)

This commit is contained in:
Johannes Findeisen 2025-09-30 21:03:36 +02:00
commit 6bd13f6e96
7 changed files with 406 additions and 17 deletions

5
demo.fun Normal file → Executable file
View file

@ -1,16 +1,19 @@
#!/usr/bin/env fun
/*
* This file is part of the Fun programming language.
* This file is part of the Fun programming language.
* https://hanez.org/project/fun/
*
* Copyright 2025 Johannes Findeisen <you@hanez.org>
* Licensed under the terms of the ISC license.
* https://opensource.org/license/isc-license-txt
*
* Added: 2025-09-30
*/
// Fun Interactive Demo
// Run: FUN_LIB_DIR="$(pwd)/lib" ./build/fun demo.fun (Linux/macOS/FreeBSD)
// set FUN_LIB_DIR=%CD%\lib && build-debug\fun.exe demo.fun (Windows CMD)
// $env:FUN_LIB_DIR="$PWD\lib"; .\build\fun.exe demo.fun (Windows PowerShell)
// Use a stdlib helper from the repository (fallback to ./lib via preprocessor)