Documentation ¶
Index ¶
Constants ¶
View Source
const LurkFileExtension = ".lurk"
Variables ¶
View Source
var ErrCircularImports = errors.New("circular imports")
Functions ¶
func IsValidLurk ¶
Types ¶
type MacroPreprocessor ¶
type MacroPreprocessor struct {
// contains filtered or unexported fields
}
func NewMacroPreprocessor ¶
func NewMacroPreprocessor(opts ...Option) (*MacroPreprocessor, error)
func (*MacroPreprocessor) Preprocess ¶
func (p *MacroPreprocessor) Preprocess(lurkProgram string) (string, error)
type Option ¶
type Option func(cfg *config) error
Option is configuration option function for the MacroPreprocessor
func DependencyDir ¶
DependencyDir sets the dependency directory that is used to look up imported modules.
func RemoveComments ¶
func RemoveComments() Option
func WithStandardLib ¶
func WithStandardLib() Option
WithStandardLib creates an embedded dependency directory containing only the standard library. This is not compatible with DependencyDir.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) ParseSExpr ¶
Click to show internal directories.
Click to hide internal directories.