Documentation ¶
Overview ¶
Package transpiler contains an implementation of a Whistle Tree Visitor that produces a Whistler Program.
Index ¶
Constants ¶
View Source
const ( // SourcePosStart is the metadata key for start position in Whistle source. SourcePosStart = "Source Position Start" // SourcePosStop is the metadata key for stop position in Whistle source. // The Column is exclusive, i.e., the last character is the one before. SourcePosStop = "Source Position Stop" )
Variables ¶
View Source
var IncludeSourcePositions option = func(t *transpiler) { t.includeSourcePositions = true }
IncludeSourcePositions is a transpiler option to add Whistle source position metadata to the Whistler proto during transpilation.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.