btwael / mammouth

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

Variables starting with reserved words #7

Closed der-david closed 10 years ago

der-david commented 11 years ago

Playing with the online compiler, I have found two issues when declaring functions and variables.

http://mammouth.wamalaka.com/#try:{{%0Ainitiate%20%28x%29-%3E%0A%20%20return%28x%20%22%20initiated%22%29%0Ainitiate%28%27world%20domination%27%29%0A}}

if should only be interpreted as a conditional statement when followed by whitespace (same with function names).

same thing for in http://mammouth.wamalaka.com/#try:{{%0Ainitialize%20%28x%29%20-%3E%20%0A%20%20return%28%22beginning%20%22%20x%29%0Ainitiate%28%22world%20domination%22%29%0A}}

apart from that mammouth is looking good so far :smiley:

btwael commented 11 years ago

Hi and thank @David, I already notice this bug, I will fix it soon, now, I am in a travel, and I don't have a computer. Sorry for my english

2013/7/28, David Ostendorf notifications@github.com:

Playing with the online compiler, I have found two issues when declaring functions and variables.

http://mammouth.wamalaka.com/#try:{{%0Ainitiate%20%28x%29-%3E%0A%20%20return%28x%20%22%20initiated%22%29%0Ainitiate%28%27world%20domination%27%29%0A}}

if should only be interpreted as a conditional statement when followed by whitespace (same with function names).

same thing for in http://mammouth.wamalaka.com/#try:{{%0Ainitialize%20%28x%29%20-%3E%20%0A%20%20return%28%22beginning%20%22%20x%29%0Ainitiate%28%22world%20domination%22%29%0A}}

apart from that mammouth is looking good so far :smiley:


Reply to this email directly or view it on GitHub: https://github.com/btwael/mammouth/issues/7

eazuka commented 11 years ago

Hi @btwael, I am interested in using mammouth.

has this issue been fixed?

btwael commented 11 years ago

hi @eazuka, hi @der-david This bug is fixed

btwael commented 11 years ago

Variables can't start with 'For', 'if', 'while' and 'namespace'

btwael commented 10 years ago

Fixed try the new mammouth http://mammouth.wamalaka.com/