library for calculator for numbers with units
Now, it become a Kotlin with Gradle project!🎉
This is a library to calculate with units.
To make calculation, give Parser
object a string valued numerical expression and call compile()
function.
You will get Expression
object and that's evaluate()
Function will return the result by string.
Please add these settings on your build.gradle
.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.clockvoid:FormulaParser:v0.1.0'
}
At this time, you have to clone
this repository to your local and make Jar or something.
I'm working hard. I added code coverage for controlling test.
I used Recursive Descent Parsing.