flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 24 Oct 2013, 23:20
It is a way of putting all "args" into one parameter without having the outer macro strip the surrounding angle brackets (<>).
|
|||
![]() |
|
ejamesr 25 Oct 2013, 02:50
Thanks, revolution. I have another question.
If a 'proc' procedure has no arguments other than the procedure name, the match statement in the 'proc' macro will not match, and so the block will not get processed and 'define@proc' should not be called. But it is still always processed, even though it seems it should not. Why is that? |
|||
![]() |
|
revolution 25 Oct 2013, 07:37
Because the '>' character will match
|
|||
![]() |
|
ejamesr 25 Oct 2013, 17:44
That makes sense; I forgot that the angle brackets (or any other symbol character) would end the current symbol. So after, for example, 'proc MyProc', the 'match' statement above assigns 'MyProc' to 'name', and '>' to 'params', which means the block can then be processed because it matches the match pattern (which requires two components).
I'm learning that the 'match' command is very flexible, but can also be quite complex! Thanks again, Eric |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.