@helios-lang/compiler
Version:
Helios is a Domain Specific Language that compiles to Plutus-Core (i.e. Cardano on-chain validator scripts). Helios is a non-Haskell alternative to Plutus. With this library you can compile Helios scripts and build Cardano transactions, all you need to bu
39 lines • 1.62 kB
TypeScript
/**
* @import { BoolLiteral, ByteArrayLiteral, IntLiteral, RealLiteral, StringLiteral } from "@helios-lang/compiler-utils"
* @typedef {import("@helios-lang/ir").SourceMappedStringI} SourceMappedStringI
* @typedef {import("../typecheck/index.js").DataType} DataType
* @typedef {import("../typecheck/index.js").EvalEntity} EvalEntity
*/
/**
* @typedef {(IntLiteral | RealLiteral | BoolLiteral | ByteArrayLiteral | StringLiteral)} PrimitiveLiteral
*/
/**
* Literal expression class (wraps literal tokens)
*/
export class PrimitiveLiteralExpr extends Expr {
/**
* @param {PrimitiveLiteral} primitive
*/
constructor(primitive: PrimitiveLiteral);
/**
* @private
* @readonly
* @type {PrimitiveLiteral}
*/
private readonly _primitive;
/**
* @type {DataType}
*/
get type(): import("../typecheck/common.js").DataType;
}
export type SourceMappedStringI = import("@helios-lang/ir").SourceMappedStringI;
export type DataType = import("../typecheck/index.js").DataType;
export type EvalEntity = import("../typecheck/index.js").EvalEntity;
export type PrimitiveLiteral = (IntLiteral | RealLiteral | BoolLiteral | ByteArrayLiteral | StringLiteral);
import { Expr } from "./Expr.js";
import type { IntLiteral } from "@helios-lang/compiler-utils";
import type { RealLiteral } from "@helios-lang/compiler-utils";
import type { BoolLiteral } from "@helios-lang/compiler-utils";
import type { ByteArrayLiteral } from "@helios-lang/compiler-utils";
import type { StringLiteral } from "@helios-lang/compiler-utils";
//# sourceMappingURL=PrimitiveLiteralExpr.d.ts.map