Syntax analysis. Calculation of the expression.



  • Hello.

    • X = 5
    • Y = X + 5
    • How do you do it so that it's Y 10?


  • You need to implement a table of symbols: meaning with the possibility of changing values.

    When syntaxing your expressions in the right part, instead of the name, put his current meaning. After computing the expression, change the value for the name from the left of the attribution.

    In fact, the right part can be compared with the analysis.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2