A parsing library for math formulas, originally coded by ByteXenon. I decided to port it to Factorio, since it is pretty useful in certain situations, and no one has offered a tool like it before in the mod portal. Check the whole documentation here (it is so extense, that it is actually better/easier to just refer his documentation).
Factorio use example
this is how you import the library.
local MathParser = require("__math-parser__.module")
here a new parser instance is created.
local myParser = MathParser:new()
follow ByteXenon's documentation from here...