thejoeejoee / IFJ-VUT-BIT-2017-2018

Repository for program interpret of custom language IFJ2017 written in C tested under Google tests.
GNU General Public License v3.0
2 stars 3 forks source link

3A kód - cykly #50

Closed thejoeejoee closed 7 years ago

thejoeejoee commented 7 years ago
# push label
LABEL %loop%001%start

# výraz
PUSHS bool@false
# push label
JUMPIFEQS %loop%001%end
# do while
    # push label
    LABEL %loop%002%start

    # výraz
    PUSHS bool@false
    # push label
    JUMPIFEQS %loop%002%end

        WRITE int@42

    JUMP %loop%002%start
    LABEL %loop%002%end

JUMP %loop%001%start
LABEL %loop%001%end
SonyPony commented 7 years ago

Projednáno

thejoeejoee commented 7 years ago

do-while loop hotov, opět se čeká na expressions

thejoeejoee commented 7 years ago

v tuto chvíli půjde lehce integrovat s pomocí expressions