flat assembler
Message board for the users of flat assembler.
Index
> High Level Languages > I’m Making a Language With FASM as My Backend! |
Author |
|
goren 17 Nov 2023, 23:24
Here’s a git repository: https://github.com/gorentbarak/skylang
_________________ Rust — A language empowering everyone to build reliable and efficient software. |
|||
17 Nov 2023, 23:24 |
|
Roman 19 Nov 2023, 07:09
Give more information.
And explanations. Now I not understood why you do this and what you want do. |
|||
19 Nov 2023, 07:09 |
|
goren 19 Nov 2023, 14:36
I wanted to write a language that outputs as close as possible to handwritten assembly, and also make something that has minimal operations given, instead putting most things in the standard library.
_________________ Rust — A language empowering everyone to build reliable and efficient software. |
|||
19 Nov 2023, 14:36 |
|
AsmGuru62 19 Nov 2023, 17:35
I have a project where the script like this one generated into FASM and then compiled (by FASM, of course):
Basically, it is a mix of blocks of normal FASM with some OOP features. Code: class Element { data { Surface RECT Command Int32 } code { virtual Paint (hdc) { lea ecx, Surface invoke DrawText, hdc, L"PLEASE OVERRIDE ME!", -1, ecx, DT_CENTER or DT_VCENTER or DT_SINGLELINE } } } class Circle : Element { data { ; members here will be appended to members of 'Element' as one structure } code { override Paint (hdc) { lea esi, Surface invoke Ellipse, hdc, [esi + RECT.left], [esi + RECT.top], [esi + RECT.right], [esi + RECT.bottom] } } } ; somewhere in other parts of code... class Application { data { ; .... a pile of members ... } code { method DoSomeDrawing (hdc) { locals { item1 = new Element item2 = new Circle } ; these will be painted differently, because of overriden 'Paint' item1.Paint (hdc) item2.Paint (hdc) } } } The project is frozen right now for a couple of years. Maybe, I should continue. |
|||
19 Nov 2023, 17:35 |
|
goren 19 Nov 2023, 18:13
Wait… high-level assembler? You made HLA?
_________________ Rust — A language empowering everyone to build reliable and efficient software. |
|||
19 Nov 2023, 18:13 |
|
AsmGuru62 19 Nov 2023, 21:08
No. HLA was made by Hyde long ago.
And my project is stalled for now. |
|||
19 Nov 2023, 21:08 |
|
goren 19 Nov 2023, 22:46
Okay. What is your project called?
_________________ Rust — A language empowering everyone to build reliable and efficient software. |
|||
19 Nov 2023, 22:46 |
|
AsmGuru62 19 Nov 2023, 22:52
I call it "FASM Blocks".
But it is in the middle of construction. There is no ready product. |
|||
19 Nov 2023, 22:52 |
|
goren 19 Nov 2023, 23:11
okay! sounds fun!
|
|||
19 Nov 2023, 23:11 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.