WIP: Compiler and Selector

Initial version of a compiler.
wouldn't it be more efficient to return a local var here than getting the value from the map later ?