Compile rules at runtime