Run artifact

workspace/targets/toml/blueprint/FEATURE-Lexical-Numbers.md

FEATURE: Lexical Numbers

FieldValue
Version20260814 V1
DescriptionParses TOML integers, floating-point values, special floats, and booleans.
Depends OnARCHITECTURE.md
ProvidesTOML integer values, TOML float values, TOML boolean values
Consumesparser module boundary

Behavior

The parser recognizes TOML 1.0.0 decimal, hexadecimal, octal, binary, floating-point, exponent, infinity, NaN, and boolean values. Underscore placement, signs, leading-zero rules, and lexical boundaries follow the specification. Signed integers are represented losslessly across the supported 64-bit range. Unsupported or malformed numeric and boolean tokens are rejected.

Programmatic Acceptance

Requires: executable=go; scope=test
Requires: executable=sh; scope=test

=== AC lexical-numbers-integer ===
Intent: The implementation passes the authoritative TOML integer conformance slice.
Suite: scoped

import os import subprocess

result = subprocess.run( ["sh", "sources/stage_test.sh", "valid/integer/*"], capture_output=True, text=True, env={**os.environ, "TOML_TEST_VERSION": "v2.2.0"}, ) print(result.stdout) print(result.stderr, file=import("sys").stderr) assert result.returncode == 0 === END AC lexical-numbers-integer ===

=== AC lexical-numbers-float ===
Intent: The implementation passes the authoritative TOML float conformance slice.
Suite: scoped

import os import subprocess import sys

result = subprocess.run( ["sh", "sources/stage_test.sh", "valid/float/*"], capture_output=True, text=True, env={**os.environ, "TOML_TEST_VERSION": "v2.2.0"}, ) print(result.stdout) print(result.stderr, file=sys.stderr) assert result.returncode == 0 === END AC lexical-numbers-float ===

=== AC lexical-numbers-bool ===
Intent: The implementation passes the authoritative TOML boolean conformance slice.
Suite: scoped

import os import subprocess import sys

result = subprocess.run( ["sh", "sources/stage_test.sh", "valid/bool/*"], capture_output=True, text=True, env={**os.environ, "TOML_TEST_VERSION": "v2.2.0"}, ) print(result.stdout) print(result.stderr, file=sys.stderr) assert result.returncode == 0 === END AC lexical-numbers-bool ===

User Acceptance

Guardrails