Contexts.jl is a Julia package which implements syntax in Julia to allow context-orient-programming (COP) with roles and mixins. It also includes a Petri-net-based approach for the management of the contexts during runtime.
For further information have a look at the Website