Skip to content

Instantly share code, notes, and snippets.

@Swyter
Last active April 23, 2016 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Swyter/0168101d7d9ba6d9c67e65b9025b24e7 to your computer and use it in GitHub Desktop.
Save Swyter/0168101d7d9ba6d9c67e65b9025b24e7 to your computer and use it in GitHub Desktop.
-----> asc2 universal mem save to array
si\d+\((\w+),([^\)]+)\)
a[$2] = $1
-----> asc2 universal mem load to array
li\d+\(([\w+\-\0-9]+)\);
a[$1]
-----> int cast to assignment
= int\(([^ ]+) ([^ ]) ([^\)]+)\)
= $3 $2 $1
-----> flash initializers
:[^ ]+ =
=
----> for short self-assignments
([^ ]+) = \1 ([^ ]+)
$1 $2=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment