Directories
¶
| Path | Synopsis |
|---|---|
|
Package ast defines the TDL abstract syntax tree: a parse tree that mirrors source text 1:1, with names left unresolved.
|
Package ast defines the TDL abstract syntax tree: a parse tree that mirrors source text 1:1, with names left unresolved. |
|
backend
|
|
|
debug
Package debug is a backend that describes the model it was given.
|
Package debug is a backend that describes the model it was given. |
|
cli
module
|
|
|
cmd
|
|
|
tdl
command
Command tdl parses and formats Type Description Language source files.
|
Command tdl parses and formats Type Description Language source files. |
|
tdl-gen-debug
command
Command tdl-gen-debug is the debug backend as a plugin.
|
Command tdl-gen-debug is the debug backend as a plugin. |
|
e2e
module
|
|
|
gen
module
|
|
|
internal
|
|
|
cli
Package cli wires up the tdl command-line interface.
|
Package cli wires up the tdl command-line interface. |
|
ebnf
Package ebnf lints the grammar files under docs/.
|
Package ebnf lints the grammar files under docs/. |
|
gen
Package gen is the compiler side of the plugin protocol: which backends exist, how a request is built, and what happens to the files that come back.
|
Package gen is the compiler side of the plugin protocol: which backends exist, how a request is built, and what happens to the files that come back. |
|
sema
Package sema lowers a parse tree to the resolved semantic model in the ir package: it resolves names, lowers sugar to prelude types, and interns type references.
|
Package sema lowers a parse tree to the resolved semantic model in the ir package: it resolves names, lowers sugar to prelude types, and interns type references. |
|
Package ir is the resolved semantic model backends consume: what the parse tree becomes once names are resolved and sugar is lowered.
|
Package ir is the resolved semantic model backends consume: what the parse tree becomes once names are resolved and sugar is lowered. |
|
Package lex implements the TDL lexer, turning source text into a stream of tokens for the parser.
|
Package lex implements the TDL lexer, turning source text into a stream of tokens for the parser. |
|
Package parser implements a hand-written recursive-descent parser that turns TDL source text into an ast.File.
|
Package parser implements a hand-written recursive-descent parser that turns TDL source text into an ast.File. |
|
pkg
module
|
|
|
Package plugin is the wire protocol a TDL backend speaks, and the SDK for writing one.
|
Package plugin is the wire protocol a TDL backend speaks, and the SDK for writing one. |
|
Package prelude embeds the standard prelude, the TDL source declaring the roots every other file depends on.
|
Package prelude embeds the standard prelude, the TDL source declaring the roots every other file depends on. |
Click to show internal directories.
Click to hide internal directories.