I have a huge lisp function that I want to use in my c++ application. This function was generated using a decision tree making algorithm.
I don't have a good idea on how to easily incorporate it into my code. I don't want to use any external libraries, and I don't want to make classes with trees and leaves from it. Also, I want to make it easy to load, that is why I first thought about compiling it in a big if-then function.
If anybody has any idea how to make this compilable in a beautiful way, please tell me. If you don't know what I want to do, or don't have any ideas, then please just don't post anything.
This is a sample of the lisp function. It is around 10.000 lines in full.
((prev_is_pause is 0)
((prev_prev_gender is d)
((houses_from_month_start < 1.9)
((houses_from_month_start < 0.1)
((customer_numsegs < 3.6)
((customers_from_company_start < 6)
((prev_jobtype is n)
((next_hairtype is -)
((0.0332597 0.109037))
((0.0535314 0.143047)))
((called_houses_from_month_end < 3.5)
((next_next_single is +)
((0.0682613 0.200642))
((month_numhouses < 8.3)
((0.0631857 0.11954))
((0.0737018 0.165414))))
((0.0442889 0.225281))))
((0.075459 0.110669)))
((next_garden is 2)
((0.0726842 0.152881))
((prev_jobtype is n)
((0.0458975 0.12033))
((next_customerbegin_jobtype is s)
((0.0246754 0.0992865))
((prev_prev_talks is aI)
((0.0240179 0.0708011))
((0.0238049 0.0894625)))))))
((prev_birthplace is a)
((next_invoice is ".")
((company_numcustomers < 13)
((called_houses_from_month_end < 2.4)
((next_talks is t)
((0.0586338 0.13392))