flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > REQUEST: iterate over characters of symbol/literate. |
Author |
|
revolution 26 Jan 2010, 05:52
It may help to convince Tomasz if you can provide an example of where this is beneficial.
|
|||
26 Jan 2010, 05:52 |
|
Tomasz Grysztar 26 Jan 2010, 10:23
I already know that IRPC would be a nice addition, and I wanted to add it the same time as IRPS, but there are few decisions I had a trouble with, and since it wasn't a high priority addition, I suspended it.
For example, how should it behave, when fed multiple symbols after the comma - should it signalize an error, or just iterate over characters of the consecutive symbols? People with MASM background may expect "irpc c,2 +1" to iterate space as well, but with fasm it's impossible. To avoid confusion, perhaps error would be a better thing to do - and thus force using IRPS and IRPC in combination for such cases? |
|||
26 Jan 2010, 10:23 |
|
bitRAKE 26 Jan 2010, 18:17
Current FASM symbolic handling should be respected: to iterate over space would require quotes or <>. Multiple symbols imply concatenation (yeah, kind of confusing).
Edit: I'm wrong about IRPS respecting <>: Code: irps x,<s0 s1 s2 s3> { display `x } Code: <s0s1s2s3> |
|||
26 Jan 2010, 18:17 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.