Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Flow and algorithm

Platform spec article

Flow and algorithm

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

Document flow and algorithm for the Console Markup Format feature: role-specific normative detail beyond the feature hub.

  • Feature hub: Console Markup Format
  • Sibling articles in this bundle (design model, contracts, flow, examples, verification)
  1. If length zero → return "".
  2. If starts with \ and next char is escapable sigil → emit sigil + recurse on remainder.
  3. If starts with ** and closing ** exists → render inner with bold chain when ansi, recurse tail.
  4. If starts with __ and closing exists → underline branch (same structure).
  5. If starts with [ → parse tag name, apply attribute chain for body until [/], recurse tail.
  6. Else consume one code unit and recurse (literal accumulation).

Format(text)System.Output.WriteLine(styled) per Console I/O streams.

See the verification and traceability article in this bundle and compiler/corelib/beskid_corelib/tests/corelib_tests/src/console/.