Skip to content
A Ruby-like language that compiles to PHP
PHP C# Ruby
Find file
Failed to load latest commit information.
Fructose.Test Moved param tests to a dedicated file Apr 9, 2011
Fructose fixed syntax of usage May 15, 2011
Preprocessors erb preprocessor, and some extra little utility methods in string Feb 14, 2011
lib (hush hush) Feb 12, 2011
libfructose Edited libfructose/libfructose.php via GitHub May 16, 2011
.gitignore
Fructose.sln Added requirements section to readme Jan 22, 2011
README.md Preliminary Regexp support Feb 12, 2011
build.rb

README.md

Fructose

Fructose is a language that compiles to PHP. Fructose's syntax is borrowed from that of Ruby's, with changes and standard library differences to make this project feasible under PHP.

It is composed of two parts - Fructose itself, which is written in C#, and libfructose - a support library written in PHP and included by every file Fructose outputs. libfructose is designed to provide a subset of the Ruby standard library to Fructose programs.

libfructose Status

EnumerableDone
ArrayDone
StringDone
SymbolDone
NumberDone
TrueClass/FalseClassDone
NilClassDone
Object (including Kernel)Done
HashDone
Exceptions/ErrorsDone
RegexpSubset Done
Match
ProcDone
RandomDone
RangeDone
Time
Dir
FileDone

Requirements

Fructose is written in C# and requires the .NET 4.0 framework to run. Fructose does work and is supported under Mono, but you will need to find yourself a copy of Microsoft.Scripting.dll and Microsoft.Dynamic.dll to get it to compile. Fructose also requires the presence of IronRuby to compile and run.

Licensing

The Fructose compiler is licensed under the New BSD license. libfructose is licensed under the zlib license.

Something went wrong with that request. Please try again.