bebraw
9/12/2010 - 3:24 PM

gistfile1.txt

assign('a', 5) # implementation of this sets value of expr to given var within current namespace

# simple macro for assignment
macro('assign', '<var> = <expr>')
a = 5

# another macro
macro('assign', '<var> <- <expr>')
a <- 5

# yet another macro
macro('assign', '<expr> -> <var>')
5 -> a