Documentation ¶
Index ¶
Constants ¶
View Source
const ( // OpTypeAssign is for assigning the value of one variable to another variable. OpTypeAssign = iota // OpTypeInt is an integer assignment to a variable. OpTypeInt = iota // OpTypeFunc is for executing a function. OpTypeFunc = iota // OpTypeFuncCreate is for the creation of a function. OpTypeFuncCreate = iota )
Variables ¶
View Source
var ( // ErrEndOfFunction is for symmetry to io.EOF and denotes the end of a // function was found. ErrEndOfFunction = errors.New("end of function was found") )
Functions ¶
This section is empty.
Types ¶
type Statement ¶
Statement is the internal representation of a line of cookie code.
func GetFunction ¶
GetFunction parses up to the end of the current function and returns the set of statements contained within. It determines the end of the function either by finding the closing '}' or the end-of-file.
Click to show internal directories.
Click to hide internal directories.