Feat: Error on undefined function Fix: All ids are now prefix to prevent native var clashes. This was already done on it2, but now also in it0 and it1. Redid it2 to match. Fix: generate-recipes would not complain on missing exp. Fix: Adds documentation and test for not Chore: __check helper function for ease of use in it0, it1. Chore: some reordering to match more between iterations.
37 lines
663 B
Plaintext
37 lines
663 B
Plaintext
print mapname key:
|
|
declare value
|
|
calc value mapgetkey mapname key "def"
|
|
emit mapname
|
|
emit "."
|
|
emit key
|
|
emit ": "
|
|
emit value
|
|
emit eol
|
|
/
|
|
|
|
main:
|
|
print "TESTMAP" "abc0"
|
|
print "OTHERMAP" "abc0"
|
|
|
|
mapsetkey "TESTMAP" "abc0" "blue"
|
|
mapsetkey "TESTMAP" "abc1" "green"
|
|
mapsetkey "OTHERMAP" "abc0" "blue"
|
|
mapsetkey "OTHERMAP" "abc1" "green"
|
|
|
|
print "TESTMAP" "abc0"
|
|
print "TESTMAP" "abc1"
|
|
print "TESTMAP" "abc2"
|
|
print "OTHERMAP" "abc0"
|
|
print "OTHERMAP" "abc1"
|
|
print "OTHERMAP" "abc2"
|
|
|
|
mapclear "TESTMAP"
|
|
|
|
print "TESTMAP" "abc0"
|
|
print "TESTMAP" "abc1"
|
|
print "TESTMAP" "abc2"
|
|
print "OTHERMAP" "abc0"
|
|
print "OTHERMAP" "abc1"
|
|
print "OTHERMAP" "abc2"
|
|
/
|