Pascal compiler implemented in JavaScript