Skip to content

A C program to dynamically(Using bst) solve an infix expression.

Notifications You must be signed in to change notification settings

biabbas/Expression-parser-in-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ExpressionTreeRE.c

A C program to solve an infix expression using Expression Tree. The below was the question in my lab manual.

Compilers use expression trees to represent mathematical expressions where the leaf nodes represent the operands and the internal nodes represent the operators. Develop a program to evaluate such an expression tree with non-negative integers as operands.

I created these file to demonstrate the solution in c.

The ExpressionTreeRE3.c file is the most updated file. ExpressionTreeRE2.c file contains code that could solve an infix expression which has non-negative single digit(Max) integers. ExpressionTreeRE3.c file has code that could solve an infix expression which has non-negative 10 digit(Max) integers.

The last Release ExpressionTreeRE4.c can solve literally any expression( including negatives).

About

A C program to dynamically(Using bst) solve an infix expression.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages