funl

command module
v0.0.0-...-ab47e86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 10 Imported by: 0

README

FunL

FunL is simple dynamically typed, functional programming language. It's interpreted language with support for concurrency and immutable data. FunL is implemented with Go.

Get started

Install

Prerequisite is to have Go language environment available.

Install in Linux (or Cygwin, Mac)
git clone https://github.com/anssihalmeaho/funl.git
cd funl
make

Run hello world example:

./funla -silent examples/hello.fnl
Hello World
Install in Windows
git clone https://github.com/anssihalmeaho/funl.git
cd funl
go build -trimpath -o funla.exe -v .

Run hello world example:

funla.exe -silent examples\hello.fnl
Hello World

There are also other examples in examples folder.

Getting help and try expressions

Options: -help, -h
In Linux (or Cygwin, Mac)
./funla -help
In Windows
funla.exe -help
REPL (Read-Eval-Print-Loop)
In Linux (or Cygwin, Mac)
./funla -repl
In Windows
funla.exe -repl

In REPL type help for more information.

Check REPL usage for more hints.

Options: -eval
./funla -eval "plus(1 2)"
3

With -eval option any FunL expression can be given as argument. Expression is evaluated and result is printed.

help operator

help operator can be used to get list of operators:

./funla -eval "help('operators')"

help operator provides description for each operator:

./funla -eval "help('if')"

in REPL:

./funla -repl
Welcome to FunL REPL (interactive command shell)
funl> help('if')

Language and Standard library descriptions

Contribution and development guidelines

Guide for contributing and developing FunL

Blog

There is Blog for FunL related topics: https://programmingfunl.wordpress.com

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL