My hands are a little tied unfortunately. I want to parse files from an existing DSL (dynare). The parsing is fine and I get everything in strings handed over from python but now I want to turn that into Julia code.
My examples are based on my attempt to parse this model.
If I were to set it up myself I understand now that I could use macros to do a lot of the metaprogramming necessary for solving these kind of models but I struggle to see how to get time indexed variables. Is there a way to define a variable with an index? As in, make Julia understand that k(+1) means variable k in t+1. That would be an interesting avenue to explore.