The fluffy programming language main repository
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
adt
benchmarks
docs
driver
plugins
sdl
stdlib
test
testsuite
.gitignore
Makefile
README
TODO
ast.c
ast.h
ast2firm.c
ast2firm.h
ast_t.h
compiler.h
config.h
config.mak.example
firm_config.h
fluffy.vim
input.c
input.h
lexer.c
lexer.h
main.c
mangle.c
mangle.h
match_type.c
match_type.h
parser.c
parser.h
parser_t.h
plugins.c
plugins.h
plugins_t.h
semantic.c
semantic.h
semantic_t.h
symbol.h
symbol_table.c
symbol_table.h
symbol_table_t.h
token.c
token_t.h
tokens.inc
type.c
type.h
type_hash.c
type_hash.h
type_t.h
unicode.h

README

						The fluffy programming language



1. Introduction

fluffy is an experimental language designed around the following features:
	- support the low-level constructs and performance needed for system
	  programming and speed critical algorithms
	- generic programming with parametric polymorphy and typeclasses
	- extensible through plugins
	- consistent syntax

The implementation utilizes the libfirm backend for producing highly optimized
machine assembly.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2. Building and Installation

2.1 Prerequisites

* Any ANSI C99 compiler (the makefiles are configure for gcc)

* libfirm 1.9.0 or later
* libcore 0.9.0 or later (needed for libfirm)
* gcc is needed if you want to assemble and link programs produces by the
  fluffy compiler

2.2 Building

Open the Makefile and change the variables if needed (on linux systems it
should work out of the box). Then type

make

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

3. Language

There's no detailed language description yet as the language is still evolving.
However you could look at the code here:

	test/typeclass2.fluffy	- generic sorting algorithm implemented with
                              typeclasses
	test/sdl                - simple image viewer utlitzing the libSDL library
	                          (you currently have to manually link the assembly
							   against libsdl)
	stdlib/*                - declarations for large parts of the C standard
	                          library. Also including some helper coder for
							  variable sized array.
	plugins/*               - Language extensions plugins (for and while loops)
	                          developed in the language itself
	benchmarks/*            - several smaller benchmark programs

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

4. Contact

Matthias Braun <matze@braunis.de>