RWC 2; reworking compiler, replace lookups by const lookups