Source
export interface Source {
content: string
getChar(i: number): string
getPosition(i: number): [number, number]
getWord(i: number): string
length: number
lineEndLocations: number[]
moduleName?: string
moreInfo?: string
name: string
pretty(): string
project?: string
purpose?: string
}
Source
wraps a string so that it can be passed by reference.
Source
can also be given additional context information, which is useful during debugging.
Source
is used by textual-Uplc, IR and Helios.
Instantiate a Source
instance with makeSource.
Properties
content
content: string
getChar
getChar(i: number): string
getPosition
getPosition(i: number): [number, number]
getWord
getWord(i: number): string
length
length: number
lineEndLocations
lineEndLocations: number[]
moduleName
moduleName?: string
moreInfo
moreInfo?: string
name
name: string
pretty
pretty(): string
project
project?: string
purpose
purpose?: string