move non essential opcodes to primitives and add userdata
This commit is contained in:
parent
e654143a90
commit
45e2c0d406
17 changed files with 234 additions and 37 deletions
7
std.grr
7
std.grr
|
|
@ -1,3 +1,10 @@
|
|||
def print { stdout fprint }
|
||||
def println { stdout fprint "\n" stdout fprint }
|
||||
def nl { "\n" stdout fprint }
|
||||
|
||||
def eprint { stderr fprint }
|
||||
def eprintln { stderr fprint "\n" stderr fprint }
|
||||
|
||||
def when { [] if }
|
||||
def unless { swap when }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue