Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FuncNameQuote is a name for quote function. FuncNameQuote = "quote" // FuncNameUnquote is a name for unquote function. FuncNameUnquote = "unquote" )
Variables ¶
Functions ¶
func DefineMacros ¶
func DefineMacros(program *ast.Program, env object.Environment)
DefineMacros finds macro definitions in the program, saves them to a given environment and removes them from the AST.
func ExpandMacros ¶
ExpandMacros expands defined macros and replaces AST nodes with the result of macro expansion.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.