Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FROM statement doesn't recognize a BYTE/WORD variable as a variable #34

Open
andresdelfino opened this issue Sep 6, 2021 · 0 comments

Comments

@andresdelfino
Copy link

The FROM statement expects its variable to be of type INT; if it's BYTE or WORD, an "expecting a variable" error occurs.

This can be tested with this code:

PROGRAM test;
PRIVATE
    WORD perrito;
BEGIN
    FROM perrito=0 TO 1;
    END
    FOR (perrito = 0;;)
    END
END

Notice that the FOR statement works perfectly with a WORD or BYTE variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant