Compilation contracts
Exact IR versions, checked diagnostics, native IR builders and IR writers in Morphir.Compilation.
The Morphir .NET API provides comprehensive support for working with Morphir IR (Intermediate Representation).
The core namespace contains the fundamental types and structures for Morphir IR:
The main namespace contains CLI and application-level functionality:
To use Morphir .NET in your project:
using Morphir.Core.IR;
using Morphir.Core.Types;
// Create a type expression
var intType = new TypeExpr.TInt();
// Create a function type
var funcType = new TypeExpr.TFunc(
new TypeExpr.TInt(),
new TypeExpr.TString()
);
For detailed API documentation, see the generated XML documentation comments in the source code, or explore the source directly:
Exact IR versions, checked diagnostics, native IR builders and IR writers in Morphir.Compilation.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.