Releases: FlatAssembler/AECforWebAssembly
Basic support for the TypeOf operator
I've added the basic support for the TypeOf
operator, that returns the type of the expression as a string. However, there is a caveat: the compiler crashes under certain conditions if you use TypeOf
with the structure pointers. See this GitHub issue for more details: #22
Added support for the unary plus operator
Fixed a few bugs regarding structure pointers
I have made another example program, Huffman Coding in AEC, which exposed three bugs in the compiler, all of them related to compiling instruction pointers. So, I fixed those bugs.
Fixed a bug preventing chained comparisons from being used in compile-time constants
Added support for the less-than-or-equal and greater-than-or-equal operators
Added support for chained comparisons
Fixed a long-standing bug in the parser
Compiled using GCC 13.2
Fixed a bug in the semantic analyzer related to `?:` and structures
Thanks to the StackExchange user kaya3, I discovered and fixed two bugs in my compiler (one in the core of the compiler and one in the semantic analyzer), both related to the ternary conditional operator ?:
and structures. You can read more about it on this GitHub issue. Also, I've improved the documentation (most importantly, adding an example program in both dialects of AEC).