A Basic Interpreter written from scratch for the ESP8266

Moderator: Mmiscool

User avatar
By Electroguard
#45121 The Timer Example fails for me with an unknown branch error.
I tried using a different simplified branch name, but still gives a branching error.
Is timer duration [branch] broken in ESP Basic 2.0.Alpha 7, or has the syntax changed?


Code: Select allTimer Example

    timer 5000 [do.some.stuff]
    print "going to do some stuff in a bit"
    button "Click me to exit" [Exit.ThisThing]
    wait

    [do.some.stuff]
    print "Doing Some Stuff"
    wait
    ​
    [Exit.ThisThing]
    end
User avatar
By Mmiscool
#45149 timer command is different now.

old syntax
Code: Select alltimer 10000 [branch]


new syntax
Code: Select alltimer 10000, [branch]
User avatar
By Electroguard
#45162 Ta.
Did the additional comma just creep in unwanted, in which case it is likely to dissapear again in a future version?
Or is there a reason the comma was added as an additional delimiter, and does it similarly change the syntax of any other commands?
User avatar
By Mmiscool
#45167 It was required to make an expression able to be used for the timer duration.