Added semantic rules for scripts