rename and globalize: text -> src, i -> pc
use TypedArray
localize: nest
rename and globalize: curmem -> reg
use infinite loop instead of for
fix around stdin
Merge pull request #1 from 7shi/master

fix around stdin