Documentation
¶
Index ¶
- Constants
- func ParseEntityRef(ctx context.Context, ref string) (core.EntityRef, error)
- func Pointer[T any](v T) *T
- type Analyzer
- type Backend
- type Builder
- type Compiler
- type CompilerInput
- type CompilerOutput
- type Desugarer
- type Error
- type Frontend
- type FrontendResult
- type Irgen
- type LibraryExport
- type Middleend
- type Mode
- type Parser
- type RawBuild
- type RawModule
- type RawPackage
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func ParseEntityRef ¶ added in v0.5.0
ParseEntityRef calls Neva and marshals result into core.EntityRef.
Types ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func (Compiler) Compile ¶
func (c Compiler) Compile(ctx context.Context, input CompilerInput) (*CompilerOutput, error)
type CompilerInput ¶ added in v0.26.0
type CompilerOutput ¶ added in v0.32.0
type CompilerOutput struct {
FrontEnd FrontendResult
}
CompilerOutput contains results of compilation. For now it only exposes frontend result, but can be extended.
type Frontend ¶ added in v0.26.0
type Frontend struct {
// contains filtered or unexported fields
}
func NewFrontend ¶ added in v0.26.0
type FrontendResult ¶ added in v0.26.0
type LibraryExport ¶ added in v0.33.0
type Middleend ¶ added in v0.26.0
type Middleend struct {
// contains filtered or unexported fields
}
func (Middleend) ProcessExecutable ¶ added in v0.33.0
func (m Middleend) ProcessExecutable(feResult FrontendResult) (*ir.Program, *Error)
func (Middleend) ProcessLibrary ¶ added in v0.33.0
func (m Middleend) ProcessLibrary(feResult FrontendResult) ([]LibraryExport, *Error)
type RawModule ¶
type RawModule struct {
Manifest src.ModuleManifest // Manifest must be parsed by builder before passing into compiler
Packages map[string]RawPackage // Packages themselves on the other hand can be parsed by compiler
}
type RawPackage ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package analyzer implements source code static semantic analysis.
|
Package analyzer implements source code static semantic analysis. |
|
This package defines source code entities - abstractions that end-user (a programmer) operates on.
|
This package defines source code entities - abstractions that end-user (a programmer) operates on. |
|
backend
|
|
|
Package parser implements source code parsing.
|
Package parser implements source code parsing. |
|
Package typesystem implements type-system with generics and structural subtyping.
|
Package typesystem implements type-system with generics and structural subtyping. |
|
utils
|
|
|
generated
Code generated by Neva v0.32.0.
|
Code generated by Neva v0.32.0. |
Click to show internal directories.
Click to hide internal directories.