zephir-lang / zephir

Zephir is a compiled high-level language aimed to ease the creation of C-extensions for PHP
https://zephir-lang.com
MIT License
3.29k stars 466 forks source link

Syntax error about not separated by spaces #2011

Open dreamsxin opened 4 years ago

dreamsxin commented 4 years ago

[ERROR] Syntax error in /xxx/test/test/debug.zep on line 9

namespace Test;

class Debug
{
    public static function decodes(b32)
    {
        var len,i,binary;
        let len = strlen(b32);
        for i in range(0, len-1) { // <-- error
        }
        return binary;
    }
}
dreamsxin commented 4 years ago

Can add more friendly tips

sergeyklay commented 4 years ago

@dreamsxin Looks like a parser issue. Good catch

dreamsxin commented 4 years ago
ZEPHIR_SET_THIS_EXPLICIT_NULL