btwael / mammouth

Unfancy PHP
http://mammouth.boutglay.com
MIT License
214 stars 22 forks source link

Lost functions #33

Closed carsonwright closed 10 years ago

carsonwright commented 10 years ago

I coppied the mammouth example and pasted it in a mammouth file:

{{
    square = (x) ->
        return(x * x)

    $square()

    cube = (x) ->
        return($square(x) * x)

    $cube()

    hello->
        echo("Hello")

    hello()
}}

And it output:

<?php 
$square = function($x) {    
    return $x * $x;
};
();
$cube = function($x) {  
    return ($x) * $x;
};
();
function hello() {  
    ('Hello');
}
();
?>

Which is, problematic

btwael commented 10 years ago

What version you use of Mammouth? last npm version or github repo version???

carsonwright commented 10 years ago

Installed github repo version, and then I installed npm version.

btwael commented 10 years ago

There any problem with npm version??

carsonwright commented 10 years ago

Both of them do the same thing for me. I tried using vim too just in case it was sublime

carsonwright commented 10 years ago

I'm on osx, not sure if different carriage returns change anything for your app

carsonwright commented 10 years ago

I did npm install -g mammouth the first time and it didn't work. I'm trying to build a library for the company I work at and I'm pursuing straight php at the moment but if I can get this to work soon I'll probably switch the library over. Thank you in advance for your help

btwael commented 10 years ago

We are working on a new vesion where all bugs and errors will be fixed...

2014-04-15 13:50 GMT+00:00 Carson Wright notifications@github.com:

I did npm install -g mammouth the first time and it didn't work. I'm trying to build a library for the company I work at and I'm pursuing straight php at the moment but if I can get this to work soon I'll probably switch the library over. Thank you in advance for your help

— Reply to this email directly or view it on GitHubhttps://github.com/btwael/mammouth/issues/33#issuecomment-40483232 .

carsonwright commented 10 years ago

Awesome, that sounds great, I'll be looking out for it.

pwhelan commented 10 years ago

Any update on the new version? Any hope it will get pushed to the github repository?

btwael commented 10 years ago

@pwhelan, Of course, tomorrow I will finish my exams at 10 o'clock, just some minutes after, I will start making the rest of new mammouth version :)

btwael commented 10 years ago

A new mammouth version with large changes see: http://mammouth.wamalaka.com/