flat assembler
Message board for the users of flat assembler.
Index
> High Level Languages > An educational compiler project written in C# |
Author |
|
FlierMate 04 Apr 2021, 15:04
Sambal programming language:
Code: LET b= 20 b /= 2 MSGBOX b b +=30 b -=1 MSGBOX b LET c=40 c*= 22 MSGBOX c Using the Sambal compiler(written in C#) will generate a Windows EXE. This simple Win32 compiler is not using FASM as back-end compiler directly, but I reverse-engineer the PE file generated by FASM to study how to output the binary executable. As such, the linker version is not the same with that of FASM, but dosHeader and importTable are kept intact as what have been produced by FASMW. Admin and mods are welcome to move this topic of discussion to elsewhere if my toy programming language is irrelevant. Thanks! PS: This is an abandoned project. https://web.archive.org/web/20210603052701/http://sambalcompiler.org/Sambal_24042021.zip Last edited by FlierMate on 31 Dec 2021, 07:39; edited 17 times in total |
|||
04 Apr 2021, 15:04 |
|
Roman 05 Apr 2021, 06:03
And how compile example1.txt ?
Show example. And what about floats nums ? For example: a = 1.2*2+2.4 |
|||
05 Apr 2021, 06:03 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.