write rules for most of the keywords and operators