Skip to content
/ funcpy Public

A purely functional language that compiles to Python.

Notifications You must be signed in to change notification settings

Synook/funcpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

funcpy

A purely functional language that compiles to Python. Basically this works by translating the funcpy functions into many, many Python lambdas. Uses Flex/Bison to do the actual parsing.

To try it out:

$ make
$ cd fpy
$ ../funcpy test

A very short guide to the language:

times a b -> (* a b); # required parens and prefix notation
largerThanOne -> (filter (< 1)); # argument omission
timesListByTwo -> (map (\x -> (* x 2))); # lambdas
main -> (dirty_print (timesListByTwo [1,2])); # dirty_print, the only IO for now

View fpy/standard.fpy for more code and the standard library, or the wiki for more information.

About

A purely functional language that compiles to Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published