Source/Packages

Compiler.QuotedLiteral

packages/compiler/src/Compiler/QuotedLiteral.alpha

1,020 lines62 declarations45.0 KiBSHA-256 605e975984e2

def · lines 536–546

quotedAppendBoundedHexDigit

Full file
Keep scalar arithmetic bounded while consuming the complete malformed escape.
536def quotedAppendBoundedHexDigit =
537  (lambda unrestricted count : Nat .
538    (lambda unrestricted accumulator : (family ModelWord32) .
539      (lambda unrestricted digit : Nat .
540        (nat-eliminate
541          (lambda unrestricted condition : Nat . (family ModelWord32))
542          accumulator
543          (lambda unrestricted predecessor : Nat .
544            (lambda unrestricted unused : (family ModelWord32) .
545              (quotedAppendHexDigit accumulator digit)))
546          (nat-less-than count (byte-to-nat (byte 6)))))))

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.