flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar 23 Jan 2012, 12:01
There is nothing different about matching square brackets, this code works correctly for me:
Code: macro TEXT [p] { local l define ?s 0 ; TEXT t[n]='text' match =0 name[size]==text, ?s p \{ display "Matched t[n]='text'" define ?s 1 \} ; TEXT t[n] match =0 name[size], ?s p \{ display "Matched t[n]" define ?s 1 \} ; TEXT t='text' match =0 name==text, ?s p \{ display "Matched t='text'" define ?s 1 \} if ?s eq 0 ERR Invalid syntax end if } TEXT tester[4]='test' Also note that you don't need to write =( or =) in match expressions, ( and ) are special character symbols so they will not be treated as names, thus the = is redundant there (but does not cause problems, anyway). |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.