Skip to content

Latest commit

 

History

174 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Func

Func is a toy functional programming language.

I'm using this project as an outlet to play around with language design/implementation.

Features

  • Basic types: Integer, String
  • Functions with partial application
  • A command-line REPL (Read-Eval-Print Loop)

Example

The code:

main = print answer
answer = integer_to_string (add1 x)
x = add (add 10 25) (add1 5)
add1 = add 1

prints the line 42 to the standard output.

How do I?

Install:

  1. Install Python if you haven't already
  2. Clone the repository

Run:

  1. Open a terminal
  2. Navigate to the repository folder
  3. Either:
    • Run the REPL: python -m func
    • Run a Func file: python -m func --file <PATH>
    • Run the tests:
      1. Navigate to the tests folder
      2. Run python .

About

A toy functional programming language

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages