Skip to content

popper-lang/popper-lang.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Popper

Welcome to the world of Popper!

Popper is an functional programming language designed to simplify the development process by providing a clear and concise syntax written in Rust

Installation

To use Popper, you must first install the Popper compiler. You can do this by cloning the official Github repository and installing from the sources.

git clone https://github.com/poplang/popper-lang.git
cd popper-lang
cargo build

Syntax

Here is an example Popper program that calculates the Fibonacci sequence:

use "io.pop" as io
use "itertool.pop" as itertool

fun fib(n) {
    if n < 2 {
        n
    } else {
        fib(n - 1) + fib(n - 2)
    }
}

io::println(fib(10))
io::println(itertool::map(fib, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]))

This program defines a function called fib that takes a single argument n. The function uses recursion to calculate the nth Fibonacci number. It then prints out the 10th Fibonacci number and a list of the first 10 Fibonacci numbers using the itertool::map function.

Key Features

my langage is SFBCF:

  • Simple and clear syntax
  • Functional programming paradigm
  • Built-in support for modules and packages
  • Concurrency support with lightweight threads (also known as "green threads")
  • Fast and efficient interpreteur

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published