Skip to content

idosharon/basic-c-math-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this is my super simple math parser, it can evaluate really simple math expressions like:

"1+3.3*(2-1)-2/3" -> 3.6333...
"(8*2-2)+(3-12/2)" -> 11.0
etc...

currently the parser is able process expressions with --,++,*,/,+,-,(,) and numbers with . as decimal seperator feel free to use it, modify it, find bugs, or whatever you want to do with it

run

make
parse "EXPRESSION"

add command to path

export PATH="{PARSE_EXEC_FULL_PATH}:$PATH"

About

Simple math parser written in c

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published