N NezamDocumentation

Configuration grammar#

Configuration grammar describes minimal named configuration declarations used when policy values must be supplied as data instead of hardcoded logic.

Source#

PropertyValue
Grammar filepackages/business/language/grammar/configuration.g4
Grammar nameconfiguration
Grammar kindparser
Importscommon
Imported byBusinessLanguage, module
Direct rule or token count1

How to use this page#

Read the examples first when authoring Business Language. Use the rule inventory when checking exact grammar coverage or when updating parser, lowering, editor, or documentation behavior.

Entry rules and syntax families#

Start with these rules when reading this grammar: configurationDeclaration.

  • Declarations: configurationDeclaration

Key grammar excerpts#

configurationDeclaration#

antlr
configurationDeclaration
    : CONFIG identifier OPEN_BRACE CLOSE_BRACE
    | CONFIG identifier SEMICOLON
    ;

Complete rule and token inventory#

text
configurationDeclaration

Examples#

Named configuration shell#

bl
config approval_policy;

Empty required configuration shell#

bl
config tax_policy;

Common authoring mistakes#

  • Do not put tenant, company, process, or time-varying ERP policy values in generic config blocks.
  • Use configuration declarations for named package/runtime/tool configuration shells; store business policy in tables and resolve it fail-closed.
  • /language/configuration-declarations/
  • /language/configuration-resolver-patterns/

Authoring notes#

  • Represent tenant, company, country, process, and time-varying policy as configuration data.
  • Keep examples aligned with the grammar source, not with inferred syntax from another language.
  • Use declared messages for user-facing failures, and fail closed when required configuration is absent.
Source: packages/business/language/grammar-files/configuration.md