Skip to content

04fara/mathinterpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Math Interpreter

Math Interpreter parses and evaluates mathematical expressions with the help of Visitor pattern.

As Wikipedia tells:

The visitor design pattern is a way of separating an algorithm from an object structure on which it operates. A practical result of this separation is the ability to add new operations to existent object structures without modifying the structures. It is one way to follow the open/closed principle.

It also serializes AST (Abstract Syntax Tree) in JSON object.

Supported operators: +, -, *, /, unary +, unary -, <, <=, >, >=, ==, &, |, ^ and ()

Operators precedence: Operators precedence

Example: Example

License

Math Interpreter is licensed under the terms of the MIT license.

About

Math Interpreter, written in Java, parses and evaluates mathematical expressions.

Topics

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages