Experssion, Term and Item

Every time i study about Parse tree (Compiler deisgn/Theory of compuatation), I get confused what expression, term and item actually means. So i am blogging for my reference and hope it will be useful to others too.

  • An expression is a sum (with + or -) of terms.
  • A term is a product (with * or /) of items.
  • An item is either a number, or a variable name, or an expression enclosed in parentheses.

No comments: