Posts

Showing posts with the label token

Lexical Analysis

Write a program to get the following equation as input from a file and create token(s) on another file for the possible variable to get the value from the user. After get the value from the user, regenerate all the token(s) on another file for calculation .  Equation: x = (a+b)/2 + 4*b