Skip to content
Mmmm Mmmmm mMmm
Branch: master
Clone or download
Latest commit cff1fa5 Sep 4, 2015
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Jun 6, 2015
DOC.TXT * bump Sep 4, 2015
Gulf.hs * bump Sep 4, 2015 Update Jun 6, 2015


Gulf is yet another esoteric programming language research project of mine that makes use of postfix, infix and prefix operators using a rather strange system. Infix expression have to be annotated by a , and postfix expressions with a . and prefix is default. Therefore, instead of writing (a+b)+c we have to write ,,a+b+c. Instead of writing (5+3*3)*(-1) we have to write .,5+,3*3- (where postfix - is -1*abs(x)). We could also use regular multiplication of course: ,,5+,3*3*_1 (_ is the minus sign).

*Main> run $ runParserWithString parseExpression ",:4M{~:p"
[[1] [2 1] [3 2 1] [4 3 2 1]]
You can’t perform that action at this time.