This function parses model transitions defined in denim's DSL syntax
Arguments
- x
an expression written in denim's DSL syntax. Each line should be a transition written in the format
compartment -> out_compartment = expression
where expression can be either a math expression or one of denim's built-in dwell time distribution function
Examples
transitions <- denim_dsl({
S -> I = beta * (I/N) * S * timeStep
I -> R = d_gamma(rate = 1/4, shape = 3)
})