OxL Reference

kw config

Reserved keyword

The list of words: §1.4

Syntax

ebnf
Config      = "config" Ident "{" { Field | "profile" Ident "{" { Ident "=" Expr } "}" } "}" ;

Grammar: App. A

Defined in

Examples

oxl
config App {
  dbUrl: DbUrl
  port: Port = DEFAULT_PORT
  stripeKey: secret<str>
  profile dev  { dbUrl = "sqlite://dev.db" }
  profile prod { port = 443 }
}

let app = App.get()

— 14.1 Static configuration

Related diagnostics

config-type, unknown-type

See also