DSL parser for cosmo