package
0.0.0-20241125113622-89dfc66c781a
Repository: https://github.com/cloe-lang/cloe.git
Documentation: pkg.go.dev

# Functions

Convert converts an AST with a given function.
NewAnonymousFunction creates a anonymous function.
NewApp creates an App from a function and arguments with debug information.
NewArguments creates arguments.
NewDefFunction creates a DefFunction from its function name, signature, internal let statements, and a body expression.
NewEffect creates an Effect.
NewImport creates an Import.
NewKeywordArgument creates a keyword argument from a bound name and its value.
NewLetExpression creates a let expression.
NewLetMatch creates a let-match statement from a pattern and an expression.
NewLetVar creates a LetVar from a variable name and its value of an expression.
NewMatch creates a match expression.
NewMatchCase creates a case in a match expression.
NewMutualRecursion creates a mutual recursion node from mutually-recursive functions.
NewOptionalParameter creates an optional argument.
NewPApp don't creates PPap but PApp.
NewPositionalArgument creates a positional argument.
NewSignature creates a Signature from {positional, keyword} x {required, optional} arguments and a positional rest argument and a keyword rest argument.
NewSwitch creates a match expression.
NewSwitchCase creates a case in a switch expression.

# Structs

AnonymousFunction represents a anonymous function as an expression.
App represents an application of a function to arguments.
Arguments represents arguments passed to a function.
DefFunction represents a def-function statement node in ASTs.
Effect represents effects of programs.
Import represents an import of a sub module.
KeywordArgument represents a keyword argument passed to a function.
LetExpression represents a let expression node in ASTs.
LetMatch represents a let-match statement in ASTs.
LetVar represents a let-variable statement node in ASTs.
Match represents a match expression.
MatchCase represents a case of a pattern and corrensponding value.
MutualRecursion represents a definition of mutually-recursive functions.
OptionalParameter represents an optional argument defined in a function.
PositionalArgument represents a positional argument passed to a function.
Signature represents a signature of a function.
Switch represents a switch expression.
SwitchCase represents a case of a pattern and corrensponding value.