flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Dimas 09 Sep 2010, 12:46
How in match directive cut quotes?
=' or =" don't work. |
|||
![]() |
|
revolution 09 Sep 2010, 12:49
I think the following six symbols cannot be matched
Code: { } # ` ' " |
|||
![]() |
|
Tomasz Grysztar 09 Sep 2010, 12:58
It is not that they cannot be matched - however some of them have a special meaning for some of the line makers (they are explained in the section "Tokenization of source and line makers" of Understanding fasm article For example ' and " are interpreted by source reader when they occur in the beginning of symbol and they create a single quoted string symbol. Thus any quoted text is a single token and that's why you cannot split it into parts with "match" (as "match" cannot operate on entities smaller than one token).
As for the other characters revolution listed, only the "{" cannot be matched, because it is used to denote the beginning of macro block. The other ones are no problem, however: Code: match },} {display '} matched',13,10} match #,# {display '# matched',13,10} match `,` {display '` matched',13,10} Dimas: as for your problem, please specify what exactly do you need to do. If you need to extract some data from inside quoted string, perhaps you could do it at assembly time, not in preprocessor (as with fasm's preprocessor it's currently impossible)? |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.