Dotty macros: parse dotty expressions

Is it possible to parse dotty expressions?

More specifically I have a case class DNum that holds a double. I would like to parse math expression such as DNum(1) * DNum(2) and know that I am multiplying those 2 objects. I also need to handle function calls.


Yes, last example of page shows something very similar.

Having another look it. I assume you are refering to specifically. If not, please let me know.