Superstring
===========

This fasm patch was made by Grom PE in Oct 2016.

It adds string slice operator, inspired by Python,
allowing the preprocessor to manipulate strings like so:

  "abc"[2] converts to "c"

  "slice and dice"[6:9] converts to "and"
  "slice and dice"[:9] converts to "slice and"
  "slice and dice"[6:] converts to "and dice"
  "slice and dice"[] converts to string length, 14

Like the "#" operator, it only works inside macros.

There are more examples in the *.asm files.

superstring_v3.patch.bat is the patch file,
self-executable if you have patch.exe installed on Windows.

If not, copy the fasm's "source" directory and use:

  patch -p 0 <superstring_v3.patch.bat

to create the patched fasm source, then compile it with fasm.


Related links
=============
"Updated guide to fasm internals/porting"
https://board.flatassembler.net/topic.php?t=1972

"String directives for manipulating text"
https://board.flatassembler.net/topic.php?t=574

"REQUEST: iterate over characters of symbol/literate."
https://board.flatassembler.net/topic.php?t=11099


Contact
=======
email/xmpp: i@grompe.org.ru
site: http://grompe.org.ru/

Regards, Grom PE
