Identity expression, factor, and term?
问题 I am learning context-free grammar, and I don't understand how to identity expression, factor and term in a programming language like C or C++. Suppose we have an assignment statement, id := E , where E is any arithmetic expression. What is a term? What is an expression? and What is a factor in an actual piece of code? We can have int i = 3, j = 14 int i = 3 + j * 14; Thank you very much. 回答1: The "factor", "term" and "expression" concepts come from math and don't really have to do with