Broiler.ECMAScript.Generation
0.1.0-preview.10
See the version list below for details.
dotnet add package Broiler.ECMAScript.Generation --version 0.1.0-preview.10
NuGet\Install-Package Broiler.ECMAScript.Generation -Version 0.1.0-preview.10
<PackageReference Include="Broiler.ECMAScript.Generation" Version="0.1.0-preview.10" />
<PackageVersion Include="Broiler.ECMAScript.Generation" Version="0.1.0-preview.10" />
<PackageReference Include="Broiler.ECMAScript.Generation" />
paket add Broiler.ECMAScript.Generation --version 0.1.0-preview.10
#r "nuget: Broiler.ECMAScript.Generation, 0.1.0-preview.10"
#:package Broiler.ECMAScript.Generation@0.1.0-preview.10
#addin nuget:?package=Broiler.ECMAScript.Generation&version=0.1.0-preview.10&prerelease
#tool nuget:?package=Broiler.ECMAScript.Generation&version=0.1.0-preview.10&prerelease
Broiler.ECMAScript — the shared JavaScript libraries
Libraries that implement parts of the ECMAScript specification once, for both Broiler JavaScript engines: Broiler.JS, the reference engine in this repository, and Broiler.VM's JavaScript profile. They name neither engine and reference neither. Each engine calls them through an adapter of its own, and each keeps its own values, objects, execution and resource policy.
The programme that creates them is owned in the Broiler.VM repository, under
Broiler.VM/docs/javascript-shared-libraries/. This repository's half of it is
docs/roadmap/SharedLibraries.md.
Packages
| Package | Holds | State |
|---|---|---|
Broiler.ECMAScript.Algorithms |
The language algorithms: number conversion, numerics, text, Date, the Temporal core, the time-zone algorithms. References the base class library only, and carries no data but the white-space set's generated Space_Separator table. |
The contract types (WorkCharge, ResultStatus, Failure, LengthLimit, DepthLimit), the number-conversion area of milestone SJL-3 (Broiler.ECMAScript.Numbers; adapter guide), the numerics area of milestone SJL-4 (the same namespace; adapter guide) , the text area of milestone SJL-5 (Broiler.ECMAScript.Text; adapter guide), the Date area of milestone SJL-6 (Broiler.ECMAScript.Time; adapter guide), the time-zone and calendar area of milestone SJL-8, the decoder of the data home's tables over the bytes an engine hands in, the zone algorithms and the table-backed calendars' years (the same namespace; adapter guide) and the Temporal core of milestone SJL-10.3: its records and limits, balancing, grammar and serialization (part A), its calendars, the identifiers, the formula calendars and the table calendars over those years, month codes, eras, reference years, and calendar addition and difference (part B), and its durations, rounding and differences, with and without relativeTo, over calendar and time-zone providers (part C) (Broiler.ECMAScript.Temporal; adapter guide). |
Broiler.ECMAScript.Conformance |
The shared conformance vectors' reader, validator and runners. Test-only. | Not packed at this version; the corpus itself is conformance/vectors/. |
Broiler.ECMAScript.Frontend |
The shared syntax library (ECMA-262): the frontend's syntax half, built in the six stages of milestone SJL-13.2 (Broiler.VM's JSD-0083, decision D6), to the contract of docs/frontend/design.md. References Broiler.ECMAScript.Algorithms and Broiler.Unicode.Algorithms only (rule SL1's layering row), with no Broiler.Regex edge: the regular-expression validator is an interface each engine supplies (decision D7). |
The skeleton of stage SJL-13.2a (Broiler.ECMAScript.Syntax): the parse request - SourceText, the five goals of ParseGoal with DynamicFunctionKind, ParseSwitches, the InheritedContext of eval code, ProposalFlags, LexerExtensions, ParseLimits with ErrorReporting, Broiler.Unicode's IUnicodeTables, the IRegularExpressionValidator provider with its RegularExpressionVerdict, and an optional WorkCharge - the diagnostics' types (SyntaxDiagnostic, DiagnosticPhase, SourceSpan) and SyntaxParser.Parse, which answers ParseOutcome.NotImplemented for every source until the tokenizer (stage 4b) and the parser (stage 4c). Not packed until stage SJL-13.2f, the done-when (decision D6). (Noted 2026-11-01, at stage SJL-13.2b: "answers ParseOutcome.NotImplemented for every source" no longer holds. The tokenizer, internal to the library, reads the lexical grammar under the goal its caller names, and SyntaxParser.Parse refuses a source the lexical grammar refuses, with the tokenizer's diagnostic, and answers not implemented for every other until the parser.) (Noted 2026-11-01, at stage SJL-13.2c: "and answers not implemented for every other until the parser" no longer holds. Stage 4c added the tree, public (SyntaxNode and its families, ProgramNode among them), and the parser, internal: SyntaxParser.Parse answers accepted with the tree, or refused with the first refusal, a grammar refusal under a provisional code until stage 4d, which adds the static-semantic early errors.) (Noted 2026-11-02, at stage SJL-13.2d: "under a provisional code until stage 4d" no longer holds. Every refusal carries its catalogue row's code, and the declarations walk (Broiler.ECMAScript.Semantics) reports the parse-time early errors of every syntax row of the stage table, asks the regular-expression provider about each literal, and answers an accepted source with its side tables, ParseResult.Declarations.) (Noted 2026-11-02, at stage SJL-13.2f, the done-when: "Not packed until stage SJL-13.2f, the done-when (decision D6)" no longer holds. Stage SJL-13.2e derived the limits (docs/frontend/limits/derivation.md: ParseLimits.MaximumTreeDepth 10,000 on ParseLimits.StackBytes, 16 MiB) and added determinism and fuzzing; stage SJL-13.2f charges every chain node its whole height in tree depth, so that a tree deeper than the constant is refused wherever it is built (the owner's decision of 2026-11-02 on JSD-0083's decision D14), and packs the library on the shared stream's 0.1.0-preview.N scheme. Not yet published: the stream version that carries it is published with the owner's approval (decision D30).) (Noted 2026-11-04, by the owner's decision of that day: "The tokenizer, internal to the library" holds of the tokenizer alone. The token stream a parse read is public for a request that sets ParseRequest.RetainTokens, as ParseResult.Tokens, with Token, TokenKind, TokenFlags and Word, for Broiler.VM's tokenizers-agreement row (JSD-0083, decision D21); the stream version after 0.1.0-preview.9 carries it.) |
Broiler.ECMAScript.Generation |
The data homes' generators: the time data home's - the tz, CLDR and calendar pin readers, a tz compiler equivalent to zic, and the compact time zone and calendar tables - and the Intl data home's - the CLDR and UCD pin readers, the locale lists, and the Intl and collation tables - with writers that wrap the tables into C# or raw files. Test-only, as Broiler.Unicode.Generation is: engines' tests run it, and it carries no table. |
The time data home of milestone SJL-8.2 (Broiler.ECMAScript.Generation.Time), ported from Broiler.VM's architecture tests; its inputs and tables are data/time/. The Intl data home of milestone SJL-9.2b (Broiler.ECMAScript.Generation.Intl), ported from Broiler.VM's architecture tests: with Broiler.VM's parameters it writes Broiler.VM's table byte for byte before Broiler.VM's assurance pass; its inputs, each embedding's locale list and Broiler.JS's tables are data/intl/. Published since 0.1.0-preview.5, the Intl namespace since 0.1.0-preview.8. |
Broiler.ECMAScript.Intl |
The Intl algorithms (ECMA-402) over the locale data an engine hands in, ported from Broiler.VM's JavaScript profile one sub-area at a time (Broiler.VM's JSD-0082, decision D3). References Broiler.ECMAScript.Algorithms and Broiler.Unicode.Algorithms (decision D9), and carries no table: each engine embeds its own and hands it in. |
The skeleton of milestone SJL-9.3a: the data contract of decision D8 - the tables as an IIntlDataSet (IntlTable keeps Broiler.VM's JsIntlTable numbers), decoded once into the question-level ILocaleData by TableLocaleData, with CompositeLocaleData ordering the shared data, an optional secondary provider, and the locale's parent and root - and IntlStatus. Locale identifiers, sub-area (a) of milestone SJL-9.3a: LocaleId (well-formedness, canonicalisation, aliases, likely subtags), LocaleNegotiation (CanonicalizeLocaleList's steps, lookup, best fit, filter and ResolveLocale over the default and available locales an engine gives), LocaleRecord (the Intl.Locale constructor's steps), LocaleInfo (calendars, collations, hour cycles, numbering systems, time zones, text direction and week info) and SupportedValues (Intl.supportedValuesOf). The mathematical value and plurals, sub-area (b) of stage SJL-9.3b: IntlDecimal (ToIntlMathematicalValue's value of a Number, a String or a BigInt), DigitOptionRules (SetNumberFormatDigitOptions after an engine's reads, and its defaults), NumericFormat (FormatNumericToString), PluralEngine (CLDR's plural rules with the operands c and e, and plural ranges) and PluralRulesRecord (ResolvePlural and ResolvePluralRange). Numbers and the small formatters, sub-area (c) of stage SJL-9.3c: NumberFormatter (PartitionNumberPattern and PartitionNumberRangePattern - patterns, compact notation, currencies, units, ranges, parts and numbering systems with their own symbols), ListFormatter (CreatePartsFromList), RelativeTimeFormatter (PartitionRelativeTimePattern) and DisplayNamesCore (CanonicalCodeForDisplayNames and CLDR's names). Date-time formatting, sub-area (d) of stage SJL-9.3d: DateTimeFormat (CreateDateTimeFormat after an engine's reads, the formats of Temporal's types, HandleDateTimeValue over Temporal records and resolvedOptions' components), DateTimeFormatter (FormatDateTimePattern and PartitionDateTimeRangePattern, with ICU's pattern generator, interval formatter and flexible day periods behind it, and zone names with metazone history), ResolvedTimeZone (the zone's identifier as given and its primary, decision D15) and DateTimeData (the locale data, zones and calendars an engine hands every format). Duration formatting, sub-area (e) of stage SJL-9.3e: DurationFormatCore (GetDurationUnitOptions after an engine's reads, the locale's digital format, and PartitionDurationFormatPattern over a duration record, through the number and list formatters). The integration, stage SJL-9.3f: every Intl vector answered at library level but those that need an engine, the collation vectors (intl/collation/, SJL-17's) aside, the Native AOT probe running them over Broiler.JS's tables compiled into its image under invariant globalization, and the package packed on the shared stream (decision D29). Collation, milestone SJL-17.3 (Broiler.VM's JSD-0084): UcaCollator (CompareStrings over the Unicode Collation Algorithm, CLDR's root and a tailoring, under the resolved options as a record, UcaCollatorOptions) and UcaCollationData (the collation tables decoded, with the tailoring a locale, usage and collation select, the Collator's relevant-key values and a tailoring's default alternate), ported from Broiler.VM's JsCollator and JsCollationData; every collation vector answered at library level. Not yet published. |
Further libraries (further data generators) are added by the milestones that create them. (Revised
2026-11-01, at milestone SJL-13.2a, when the frontend's row was added; the sentence read "Further libraries (the
frontend, further data generators) are added by the milestones that create them.") (Revised 2026-10-17, at milestone SJL-8.2, when the generator's row was added; the sentence read
"Further libraries (the frontend, Intl, the data generators) are added by the milestones that create
them.") (Revised again 2026-10-27, at milestone SJL-9.3a, when the Intl library's row was added; the sentence
read "Further libraries (the frontend, Intl, further data generators) are added by the milestones that create
them.") The frontend's design document, the contract it is built to, is
docs/frontend/design.md, filed before any of its code; milestone SJL-13 creates the
library. (Added 2026-10-19, at milestone SJL-12.1.) (Noted 2026-11-01, at milestone SJL-13.2a: the library
exists from that stage, as the package table's row says.) The Intl library's design document is
docs/intl/design.md, filed at milestone SJL-9.1 before any of its code; its data home,
data/intl/, is milestone SJL-9.2b's, and milestone SJL-9.3 creates the library. (Added
2026-10-26, at milestone SJL-9.2b, as bundle docs/evidence/sjl-9-001's README foresaw.)
(The Broiler.ECMAScript.Generation row revised 2026-10-26, at milestone SJL-9.2b, when the Intl data home's
generator was added; its "Not yet published" had been stale since 0.1.0-preview.5. The row read: "|
Broiler.ECMAScript.Generation | The time data home's generator: the tz, CLDR and calendar pin readers, a tz
compiler equivalent to zic, the compact time zone and calendar tables, and source writers that wrap them into C#.
Test-only, as Broiler.Unicode.Generation is: engines' tests run it, and it carries no table. | The time data
home of milestone SJL-8.2 (Broiler.ECMAScript.Generation.Time), ported from Broiler.VM's architecture tests;
its inputs and tables are data/time/. Not yet published. |")
(The Broiler.ECMAScript.Intl row revised 2026-11-02, at stage SJL-9.3f, when the library was made packable; its
last sentence read "Not packed until milestone SJL-9.3f, so that no stream version carries part of it (decision
D29).". The Broiler.ECMAScript.Generation row revised the same day; its last sentence read "Published since
0.1.0-preview.5; the Intl namespace is not yet published.", stale since the shared stream's 0.1.0-preview.8,
tagged ecmascript-v0.1.0-preview.8 at 3b4b6860 on 2026-10-29, carried the generator's Intl namespace, as
Broiler.VM's JSD-0082 notes at SJL-9.2c.)
(The Broiler.ECMAScript.Intl row extended 2026-11-02, at milestone SJL-17.3, by its sentence on collation, before
"Not yet published."; its stage SJL-9.3f sentence, which sets the collation vectors aside, is that stage's and stands.
The Broiler.ECMAScript.Generation row is unchanged: its "the Intl and collation tables" now include Broiler.JS's
tailorings and their settings.)
The frontend's area verdict is filed, and its design document now records the library's names, request and result
(its section 9), with the stage table docs/frontend/stages.tsv beside the early-error
catalogue; the library's row is added to the table above when SJL-13.2's first stage lands. (Added 2026-10-26, at
milestone SJL-13.1.)
Pins
- Specification: the ECMA-262 commit
conformance/vectors/sources/ecma262.pinnames. - Unicode: the version
conformance/vectors/sources/unicode.pinnames. - Data: the white-space set's
Space_Separatormembers, Unicode 17.0.0 (NumberParsing.UnicodeVersion), generated into the algorithms library from the pinnedPropList.txt, which the number area's design places there. The data areas of SJL-7 onward ship no data in a shared package (decision SJL-D-6 (c)); each engine embeds the tables a shared generator writes. (Revised 2026-10-12, at SJL-3.3. The bullet read: "Data: none. No shared package carries data (decision SJL-D-6 (c)); each engine embeds the tables a shared generator writes.") - Time data: IANA tzdb 2026e, CLDR 48.2.0's time zone keys, and ICU4X's
icu_calendar2.3.0 andcalendrical_calculations0.2.4 (TimeDataVersions), pinned indata/time/as copies of Broiler.VM's pins, with the tablesBroiler.ECMAScript.Generationwrites from them. No package carries them; rule SL7 regenerates the tables byte for byte. (Added 2026-10-17, at SJL-8.2.) - Intl data: CLDR 48.2.0 with its UCA 17.0.0, and the Unicode Character Database 17.0.0's
UnicodeData.txtandPropList.txt(IntlDataVersions), pinned indata/intl/: every entry of Broiler.VM's CLDR pin byte for byte with the main-data files Broiler.JS's locale list adds and thecommon/mainXML files decision D21 reads, and the UCD files equal to Broiler.Unicode's pin entries; with each embedding's locale list (Broiler.VM's JSD-0082, decision D5) and Broiler.JS's tables, whichBroiler.ECMAScript.Generationwrites from them. No package carries them; rule SL7 regenerates the tables byte for byte. (Added 2026-10-26, at SJL-9.2b.) - Temporal:
tc39/proposal-temporal@e8cc03fc, the revision both engines follow (Broiler.VM's JSD-0078, decision D1); where its text and its polyfill disagree, the text rules (decision D7). (Added 2026-10-18, at SJL-10.3.)
Conventions
Every public API follows the conventions: neutral types, failure as data, a
caller's meter charged before the work, explicit limits, determinism, no mutable statics, no
dynamic code, no I/O, no platform globalization or regular expressions, Native AOT and trimming
with no warning suppressed, and an XML documentation comment citing the clause each member
implements. The rules that decide them, SL1 to SL10, run in
Broiler.ECMAScript.Architecture.Tests.
Building
dotnet build Broiler.ECMAScript.slnf -c Release
dotnet test Broiler.ECMAScript.slnf -c Release
# The Native AOT probe, with Broiler.VM's root settings, over the whole corpus:
dotnet publish Broiler.ECMAScript/Broiler.ECMAScript.Probe -c Release -r linux-x64
# The time data home's zone table against the host's zic (where zic is installed):
python3 -I Broiler.ECMAScript/data/time/tzdb/check-zic.py
Versions
The shared packages have their own version stream, tag prefix (ecmascript-v) and changelog
(CHANGELOG.md), apart from the engine's (decision SJL-D-3). See
docs/publishing.md.
Consumers
| Engine | Consumes | Since |
|---|---|---|
| Broiler.JS | Broiler.ECMAScript.Algorithms, by project reference, from its parser, runtime, built-ins and storage |
milestone SJL-3.5 |
| Broiler.VM | Broiler.ECMAScript.Algorithms 0.1.0-preview.3, through its committed feed, from its profile and its compiler |
milestone SJL-3.4 |
(Corrected 2026-10-13, at milestone SJL-4.3, for the SJL-3 cut-overs. The rows read "| Broiler.JS | nothing yet | — |" and "| Broiler.VM | nothing in a product project; the probe package, test-only, through its committed feed | milestone SJL-2 |"; the package table's state for the algorithms library read "The contract types (...) and the number-conversion area of milestone SJL-3 (...)".)
(Corrected 2026-10-14, at milestone SJL-5.3, for the text area and the version Broiler.VM pins since
SJL-4. The package table's state for the algorithms library read "..., the number-conversion area of
milestone SJL-3 (...) and the numerics area of milestone SJL-4 (...)", and the Broiler.VM row read
"Broiler.ECMAScript.Algorithms 0.1.0-preview.1".)
(Corrected 2026-10-15, at milestone SJL-6.3, for the Date area and the version Broiler.VM pins since
SJL-5. The package table's state for the algorithms library read "..., the numerics area of milestone
SJL-4 (...) and the text area of milestone SJL-5 (...)", and the Broiler.VM row read
"Broiler.ECMAScript.Algorithms 0.1.0-preview.2".)
(Corrected 2026-10-18, at milestone SJL-10.3, part C, for the Temporal durations, rounding and differences. The package
table's state for the algorithms library read "... and its calendars, the identifiers, ..., and calendar addition and
difference (part B) (Broiler.ECMAScript.Temporal; ...)", with "its records and limits, ... (part A)," before it.)
(Corrected 2026-10-18, at milestone SJL-10.3, part B, for the Temporal calendars. The package table's state for the algorithms library read "..., the Date area of milestone SJL-6 (...) and the time-zone and calendar area of milestone SJL-8, ... (the same namespace; ...)".)
(Corrected 2026-10-17, at milestone SJL-8.3, for the time-zone and calendar area. The package table's state for the algorithms library read "..., the text area of milestone SJL-5 (...) and the Date area of milestone SJL-6 (...)".)
(Corrected 2026-10-18, at milestone SJL-10.3, for the Temporal core's first part. The package table's state for the algorithms library read "..., the Date area of milestone SJL-6 (...) and the time-zone and calendar area of milestone SJL-8, ... (the same namespace; adapter guide)".)
Licence
Apache-2.0. Ported code records its origin; no share-alike or unclear-licence code enters. See
THIRD_PARTY_NOTICES.md.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.12 | 54 | 11/16/2026 |
| 0.1.0-preview.11 | 210 | 11/13/2026 |
| 0.1.0-preview.10 | 149 | 11/4/2026 |
| 0.1.0-preview.9 | 139 | 11/3/2026 |
| 0.1.0-preview.8 | 227 | 10/29/2026 |
| 0.1.0-preview.7 | 75 | 10/19/2026 |
| 0.1.0-preview.6 | 79 | 10/18/2026 |
| 0.1.0-preview.5 | 106 | 10/17/2026 |