flat assembler
Message board for the users of flat assembler.
Index
> Programming Language Design > My programming language |
Author |
|
pabloreda 16 Nov 2018, 18:52
I recommend that you read
http://thinking-forth.sourceforge.net/ it's another approach to goto conversion in a goto-free language, the spaghetti code is famous in basic !! |
|||
16 Nov 2018, 18:52 |
|
rugxulo 05 Apr 2019, 21:15
What exactly do you mean with "structural" programming?
Even Fortran-77 was supposedly "structured" (but no dynamic malloc / heap). Normally that means less reliance (or totally avoiding) global GOTO (which classic Pascal reluctantly supported but Modula-2 and Oberon omitted). Do you mean dynamic memory allocation of structured types (aka, arrays or records)? Or just using non-ordinal types, thus arrays or structs/records on the global or local (stack) level? Or do you mean structured flow control like while, for, repeat ... until, loop, etc? Dijkstra was an ALGOL expert and eschewed classic BASIC (back before others like MS QBASIC added all the structured stuff in). Similarly, Pascal was a heavy proponent of structured programming, and Wirth was even the editor of that GOTO article. It's not that you can't use GOTO but rather that it's often overused and messy. Maybe you want to look at BCPL first? EDIT: Look at Wirth's free Compiler Construction book (2013-ish). |
|||
05 Apr 2019, 21:15 |
|
MarcoV 27 May 2019, 21:13
booter wrote: I wrote lexer/parser for the new language. The idea is to create a high level language with assembly-like philosophy (pointers and goto, not variables and "structural programming"). My approach is exactly opposite to HLA. Pascal and Modula2 are considered "structured programming", maybe even quintessentially so. Yet they have both pointers and goto. It is not about having pointers and goto or not, it is about not wallowing in them. |
|||
27 May 2019, 21:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.