Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 988 Bytes

README.md

File metadata and controls

37 lines (29 loc) · 988 Bytes

The Flan Programming Language


WARNING!! THIS LANGUAGE IS IN DEVELOPMENT

Functional LANguage is a high-level, dynamically- and strongly-typed, functional programming language that runs on a virtual machine. Flan is my high school Computer Science project written in C++.


Almost nothing works currently... See the TODO list here.

std := import(:std)

names := ["Tsoding", "ThePrimeagen", "Fireship"]
std::for(names) ::: (name)
  std::println("I substribe to {{}}!", name)
{println: println} := import(:std)

fn fib(n)
  if (n < 2)
    n
  else
    fib(n - 1) + fib(n - 2)

println("Result: {{}}", fib(12))