Directories
¶
| Path | Synopsis |
|---|---|
|
Package batch coalesces what a run writes for a host to which each write is costly, such as a debug adapter sending an event per write or a page posted a message per write.
|
Package batch coalesces what a run writes for a host to which each write is costly, such as a debug adapter sending an event per write or a page posted a message per write. |
|
Package check is the type checker (sections 4 through 8 and 10 of the specification).
|
Package check is the type checker (sections 4 through 8 and 10 of the specification). |
|
Package dap is ant dap, the debug adapter (spec/dap.md): it serves the Debug Adapter Protocol on a stream and runs one program under the interpreter's debugger, in its own process.
|
Package dap is ant dap, the debug adapter (spec/dap.md): it serves the Debug Adapter Protocol on a stream and runs one program under the interpreter's debugger, in its own process. |
|
Package diag finds what a diagnostic is about in its source, and prints it as ant check does: the position and the message, then the lines it covers with the span underlined.
|
Package diag finds what a diagnostic is about in its source, and prints it as ant check does: the position and the message, then the lines it covers with the span underlined. |
|
Package doc prints declarations with their doc comments, as ant doc does (spec/doc.md).
|
Package doc prints declarations with their doc comments, as ant doc does (spec/doc.md). |
|
Package format lays out Ant source as spec/fmt.md describes: it reprints the tokens, comments, and line breaks of a module, changing only whitespace, statement semicolons, and trailing commas.
|
Package format lays out Ant source as spec/fmt.md describes: it reprints the tokens, comments, and line breaks of a module, changing only whitespace, statement semicolons, and trailing commas. |
|
Package frame reads and writes messages framed by a Content-Length header, as the Language Server Protocol and the Debug Adapter Protocol frame them (spec/lsp.md and spec/dap.md, section 1).
|
Package frame reads and writes messages framed by a Content-Length header, as the Language Server Protocol and the Debug Adapter Protocol frame them (spec/lsp.md and spec/dap.md, section 1). |
|
Package grapheme splits text into extended grapheme clusters by the rules of Unicode's UAX #29, for String.graphemes (section 11, String).
|
Package grapheme splits text into extended grapheme clusters by the rules of Unicode's UAX #29, for String.graphemes (section 11, String). |
|
Package highlight classifies the bytes of Ant source for coloring, as the REPL colors its input and ant check its code snippets.
|
Package highlight classifies the bytes of Ant source for coloring, as the REPL colors its input and ant check its code snippets. |
|
Package interp evaluates a loaded program (section 12).
|
Package interp evaluates a loaded program (section 12). |
|
Package lexer turns Ant source into tokens, applying the line-ending rule of section 2.
|
Package lexer turns Ant source into tokens, applying the line-ending rule of section 2. |
|
Package lib implements the standard library (section 11 and stdlib.md) as builtins, and builds the prelude table that binds every prelude name.
|
Package lib implements the standard library (section 11 and stdlib.md) as builtins, and builds the prelude table that binds every prelude name. |
|
Package loader reads a program's modules, parses and resolves them, and orders them for initialization (section 10).
|
Package loader reads a program's modules, parses and resolves them, and orders them for initialization (section 10). |
|
Package lsp is the language server behind ant lsp (spec/lsp.md): it speaks the Language Server Protocol over a stream, analyzing each open document as the root of its own program.
|
Package lsp is the language server behind ant lsp (spec/lsp.md): it speaks the Language Server Protocol over a stream, analyzing each open document as the root of its own program. |
|
htmldata
Package htmldata lists the elements and attributes of HTML for completion in markup (section 5, HTML expressions).
|
Package htmldata lists the elements and attributes of HTML for completion in markup (section 5, HTML expressions). |
|
Package prelude lists the names the prelude binds in every module (sections 10 and 11).
|
Package prelude lists the names the prelude binds in every module (sections 10 and 11). |
|
Package repl is the read-eval-print loop a bare ant command runs.
|
Package repl is the read-eval-print loop a bare ant command runs. |
|
Package resolve annotates a parsed module: every identifier gets a reference, every binding a slot, and every scope its size.
|
Package resolve annotates a parsed module: every identifier gets a reference, every binding a slot, and every scope its size. |
|
Package temporal implements the time values of stdlib.md's Time namespace after JavaScript's Temporal: an Instant on the time line, a ZonedDateTime in a zone, the plain wall-clock types, zones, and durations, with nanosecond precision and Temporal's range of 100 million days each way from the epoch.
|
Package temporal implements the time values of stdlib.md's Time namespace after JavaScript's Temporal: an Instant on the time line, a ZonedDateTime in a zone, the plain wall-clock types, zones, and durations, with nanosecond precision and Temporal's range of 100 million days each way from the epoch. |
|
gen
command
Command gen writes zones_gen.go, the zone table of package temporal, from three published files: tzdata.zi, the compact form of the IANA time zone database that systems ship under zoneinfo (its Z lines are the zones and its L lines the links to them), which gives every name; CLDR's bcp47/timezone.xml, whose alias groups say which names are one zone, as Temporal's implementations canonicalize, so that Asia/Calcutta equals Asia/Kolkata while Europe/Stockholm stays apart from Europe/Berlin although the IANA database has merged their rules since 1970; and CLDR's windowsZones.xml, which maps Windows zone names to IANA names.
|
Command gen writes zones_gen.go, the zone table of package temporal, from three published files: tzdata.zi, the compact form of the IANA time zone database that systems ship under zoneinfo (its Z lines are the zones and its L lines the links to them), which gives every name; CLDR's bcp47/timezone.xml, whose alias groups say which names are one zone, as Temporal's implementations canonicalize, so that Asia/Calcutta equals Asia/Kolkata while Europe/Stockholm stays apart from Europe/Berlin although the IANA database has merged their rules since 1970; and CLDR's windowsZones.xml, which maps Windows zone names to IANA names. |
|
Package token defines the tokens the lexer produces and the parser consumes.
|
Package token defines the tokens the lexer produces and the parser consumes. |
|
Package types is the checker's type language (section 4): primitives, null, void, never, arrays, maps, sets, functions, anonymous records, named types, type parameters, and unions.
|
Package types is the checker's type language (section 4): primitives, null, void, never, arrays, maps, sets, functions, anonymous records, named types, type parameters, and unions. |
Click to show internal directories.
Click to hide internal directories.