Simple script compiler and interpreter