Skip to content

It's an app that calculates the value of a mathematical expression and views the syntactic binary tree built by parser. Allowed operators: *,/,^,+,- and braces.

Notifications You must be signed in to change notification settings

sinnerJoe/BTree-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BTree-calculator

It's an app that calculates the value of a mathematical expression and views the syntax binary tree built by parser. Allowed operators: *,/,^,+,- and brackets. Example:
input:
2+5+11*(20*15*14)+20*2*(3+5+2)
output:

 = 46607
                 (+)                       
                 / \                       
                /   \                      
               /     \                     
              /       \                    
             /         \                   
            /           \                  
           /             \                 
          /               \                
         /                 \               
       (+)                 (*)             
       / \                 / \             
      /   \               /   \            
     /     \             20   (*)          
    /       \                 / \          
  (+)       (*)              /   \         
  / \       / \             2    (+)       
 /   \     /   \                 / \       
2     5   11   (*)              /   \      
               / \            (+)    2     
              /   \           / \          
             20   (*)        /   \         
                  / \       3     5        
                 /   \                     
                15    14         

About

It's an app that calculates the value of a mathematical expression and views the syntactic binary tree built by parser. Allowed operators: *,/,^,+,- and braces.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages