UNPKG

@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

18 lines 766 B
/** * @import { Token, Word } from "@helios-lang/compiler-utils" */ /** * @param {ParseContext} ctx * @returns {[Word, Word]} */ export function parseHeader(ctx: ParseContext): [Word, Word]; /** * Quickly extract the script purpose header of a script source, by parsing only the minimally necessary characters. * Returns `null` if the script header is missing or syntactically incorrect. The first string returned is the script purpose, the second value returned is the script name. * @param {string} rawSrc * @returns {string | undefined} */ export function extractName(rawSrc: string): string | undefined; import { ParseContext } from "./ParseContext.js"; import type { Word } from "@helios-lang/compiler-utils"; //# sourceMappingURL=parseHeader.d.ts.map