
So this one would be for Linux...that is fine
well i am not Linux user very much but i like concept.
With NASM installed on Windows, it shouldn't be difficult to port. But the library must support Windows system calls too. This is not difficult and will be implemented along with compiler directives once the basic compiler is complete and functional. This will likely take a few more months as floating point numbers and arrays have not been implemented yet.
The advantage of learning ASM is that concepts such as arrays become easier to understand and implement. Same goes for structs/types.aurel wrote: ↑Tue Nov 23, 2021 4:02 pm Of course i understand
i build few toy interpreters and never compiler ,assembly ..ouhhh i don't get it![]()
it is not easy work , even i am working (from time to time ) on my small interpreter
i still not have arrays ..hmm i am in doubt how to add them ,i know ways but i am not sure what
would be better ..so keep on![]()
While developing the expression parser last year I realized why 'mature' languages such as Pascal and C use different operators for assignment and comparison. Key is boolean expression evaluation. With statements such as:
Code: Select all
a = b
if a = b ...
Code: Select all
a = b = c?
Code: Select all
a = b == c
Code: Select all
a = b = c
I beg to differ. Expressions expecting a boolean result are plenty:
Code: Select all
dim test: bool;
dim b, c: int = 10;
test = b = c; ' perfectly legal test, but ambiguous with a single operator for assignment and comparison
test = b == c; ' perfectly clear what this is about.