c4 icon indicating copy to clipboard operation
c4 copied to clipboard

Bad local declaration

Open tigertv opened this issue 5 years ago • 1 comments

I get the error when use the following declaration:

int a = 5;

but the following code works without errors

int a;
a = 5;

tigertv avatar Jan 09 '21 15:01 tigertv

The parser is designed for simplicity and ease of understanding. It simply does not support declaring and assigning variables in the same line. I like to think that extending the capabilities is left up to the reader as a way of exploring the program.

andrakis avatar Jan 09 '21 16:01 andrakis