To compile the Dynare file rbc.mod and produce a julia module, just do
rbc.mod
include("test.jl")
in a script or in julia's shell.