Documentation
¶
Overview ¶
Package codetranspiler exposes the stable many-to-many Code Transpiler API.
Import path: github.com/tarekwasfy01/Code-Transpiler
Index ¶
- func CapabilityMatrixJSON(features []string) ([]byte, error)
- func ImplementationMatrixJSON() ([]byte, error)
- func LanguagesJSON() ([]byte, error)
- func NativeAnalysisJSON(source, filename, code string) ([]byte, error)
- func NativeSemanticJSON(source, filename, code string) ([]byte, error)
- func SemanticJSON(source, code string) ([]byte, error)
- func Transpile(source, target, code string) (string, error)
- func TranspileSemanticJSON(target string, data []byte) (string, error)
- type Capability
- type Language
- type TranspileRequest
- type TranspileTrace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CapabilityMatrixJSON ¶ added in v1.0.5
CapabilityMatrixJSON returns status matrices for semantic requirements across all registered targets. Unknown requested features are unsupported.
func ImplementationMatrixJSON ¶ added in v1.0.5
ImplementationMatrixJSON returns typed operations by frontend, JSON, runtime and target implementation stages. Declarations are not execution test results.
func LanguagesJSON ¶
func NativeAnalysisJSON ¶ added in v1.0.5
NativeAnalysisJSON extracts native types, source spans and symbol relations. Currently supports import-free Go files. This is an analysis artifact, not an executable SemanticProgram; TranspileSemanticJSON intentionally rejects it.
func NativeSemanticJSON ¶ added in v1.0.5
NativeSemanticJSON converts a supported native source subset directly to an executable SemanticProgram. It never retries the legacy textual frontend. Accepts a bounded Go scalar/function subset, including fixed-width integers.
func SemanticJSON ¶
Types ¶
type Capability ¶
type Capability struct {
Feature string `json:"feature"`
Backend string `json:"backend"`
Status string `json:"status"`
Reason string `json:"reason,omitempty"`
}
func BackendCapability ¶
func BackendCapability(feature, target string) Capability
type Language ¶
type TranspileRequest ¶ added in v1.0.6
type TranspileRequest = manytomany.TranspileRequest
TranspileRequest and TranspileTrace expose the same immutable diagnostic boundary used by the bundled GUI and CLI.
type TranspileTrace ¶ added in v1.0.6
type TranspileTrace = manytomany.TranspileTrace
func TranspileWithTrace ¶ added in v1.0.6
func TranspileWithTrace(request TranspileRequest) (string, TranspileTrace, error)
TranspileWithTrace is useful for differential diagnostics: it returns the exact hashes and native/runtime decision made by the common TranspileCore.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
generic-corpus-fixpoint
command
|
|
|
machine-differential
command
Command machine-differential persists comparable Tree-sitter and generic machine traces.
|
Command machine-differential persists comparable Tree-sitter and generic machine traces. |
|
matrix-workbench
command
matrix-workbench computes current implementation gaps without modifying source.
|
matrix-workbench computes current implementation gaps without modifying source. |
|
normalize-real-ts
command
|
|
|
r2many
command
|
|
|
signature-bind
command
signature-bind exposes the shared binder for differential matrix verification.
|
signature-bind exposes the shared binder for differential matrix verification. |
|
tree-sitter-frontend-closure
command
tree-sitter-frontend-closure derives the conservative, reproducible Tree-sitter CST -> current frontend coverage matrices.
|
tree-sitter-frontend-closure derives the conservative, reproducible Tree-sitter CST -> current frontend coverage matrices. |
|
uast-corpus-matrix
command
|
|
|
uast-corpus-transpile
command
uast-corpus-transpile streams a source corpus through the productive source->UAST->target path.
|
uast-corpus-transpile streams a source corpus through the productive source->UAST->target path. |
|
uast-direct-lowering
command
|
|
|
uast-directory-transpile
command
uast-directory-transpile walks a local source tree and builds a source-free transpilation matrix.
|
uast-directory-transpile walks a local source tree and builds a source-free transpilation matrix. |
|
uast-emission-recipes
command
|
|
|
uast-execution-matrix
command
|
|
|
uast-extsem-matrix
command
|
|
|
uast-failure-matrix
command
uast-failure-matrix consolidates source-free corpus results into one normalized failure quotient.
|
uast-failure-matrix consolidates source-free corpus results into one normalized failure quotient. |
|
uast-matrix-adapter
command
uast-matrix-adapter writes the canonical input contract for the external uast-matrix-engine.
|
uast-matrix-adapter writes the canonical input contract for the external uast-matrix-engine. |
|
uast-runtime-promotion
command
|
|
|
uast-source-verify
command
|
|
|
internal
|
|
|
backend
Code generated by cmd/uast-emission-recipes; DO NOT EDIT.
|
Code generated by cmd/uast-emission-recipes; DO NOT EDIT. |
|
extsemmatrix
Package extsemmatrix imports the proof-safe 13-language external semantic matrix and projects it onto the canonical UASF capability space.
|
Package extsemmatrix imports the proof-safe 13-language external semantic matrix and projects it onto the canonical UASF capability space. |
|
runtimeassets
Package runtimeassets exposes the runtime source already compiled into the executable.
|
Package runtimeassets exposes the runtime source already compiled into the executable. |
|
tools
|
|
|
matrix-audit
command
matrix-audit exposes the existing transpilers without the GUI/runtimeassets dependency.
|
matrix-audit exposes the existing transpilers without the GUI/runtimeassets dependency. |
|
uast-direct-report
command
|