Index-1              Index-2              Home Page
Showing posts with label semantic analysis. Show all posts
Showing posts with label semantic analysis. Show all posts

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

c program to calculate any kind of equation

Write a program using c/c++/java, which can calculate any kind of equation. Implement the concept of Lexical with Semantic Analysis. Sample input: x = (a+b)/2 + 4*b.




<< Go to Index Page >>