generates syntax extension from rules file