Skip to content

Module: mirror

Mirror is the builtin module that provides full runtime ast reflection for Gambol. It also provides functions and types for parsing/creating and compiling new modules at runtime.

Functions:

get_syntax_fun_name (comp_name String) -> String

Types:

  • Version
  • CompileError
  • AST
  • ASTListIterator
  • Instruction
  • Statement
  • Expression
  • Program
  • Generic
  • Module
  • ID
  • Function
  • Formal
  • FormalList
  • BlockIterator
  • Block
  • BlockExpression
  • TypeSpecifier
  • TypeSpecifierList
  • TypeParameter
  • TypeParameterList
  • Tuple
  • Subscript
  • Property
  • TypeDefinition
  • TypeFeatures
  • Decorator
  • DecoratorList
  • EnumVariant
  • IntegerLiteral
  • BooleanLiteral
  • RealLiteral
  • StringLiteral
  • StringJoinList
  • Import
  • ParametricScope
  • ScopeParamList
  • IDPath
  • Assignment
  • MemberAccess
  • SubscriptOperation
  • FunctionInterface
  • Call
  • ElseIfList
  • IfElse
  • CatchBlock
  • ExceptionBlock
  • ConditionalLoop
  • LoopManipulator
  • Return
  • AsTypeOperation
  • IsTypeOperation
  • Raise
  • UnpackWrapper
  • ForIDList
  • ForLoop
  • ListBuilder
  • Pair
  • Yield
  • ExpressionTransform
  • AttributeArg
  • AttributeArgList
  • IndexRange
  • NoOp
  • Await
  • TypeView
  • UnaryOperation
  • BinaryOperation
  • ExpressionRedirect
  • StatementRedirect
  • ConstantExpression