A translator to implement one part of the language in terms of another.
This simplifies the compiler/interpreter implementation. This translates
from:
"for" "(" PreLoopStatement ":" Expression ")"
EvaluationUnit
to
"{"
"var" "$itr$" = "(" Expression ")" "." "iterator" "(" ")" ";"
"while" "(" "$itr$" "." "hasNext" "(" ")" ")"
"{"
PreLoopStatement "=" "$itr$" "." "next" "(" ")" ";"
EvaluationUnit
"}"
"}"
author: Rob Clark version: 0.1 |