Compiler module

make_string_literal

procedureSource

Allocates a string literal node holding a copy of s.

make_string_literal :: (s: string) -> *C.Code_Literal

Parameters

s: string

Returns

Example↗
literal := make_string_literal("hi");
assert(literal._string == "hi");

See also