Enum ketos::compile::CompileError [] [src]

pub enum CompileError {
    ArityError {
        name: Name,
        expected: Arity,
        found: u32,
    },
    CannotDefine(Name),
    ConstantExists(Name),
    DuplicateExports,
    DuplicateModuleDoc,
    DuplicateParameter(Name),
    ExportError {
        module: Name,
        name: Name,
    },
    ImportCycle(Name),
    ImportError {
        module: Name,
        name: Name,
    },
    ImportShadow {
        module: Name,
        name: Name,
    },
    InvalidCallExpression(&'static str),
    InvalidCommaAt,
    InvalidModuleName(Name),
    MacroRecursionExceeded,
    MissingExport,
    ModuleError(Name),
    NotConstant(Name),
    OperandOverflow(u32),
    PrivacyError {
        module: Name,
        name: Name,
    },
    SyntaxError(&'static str),
    UnbalancedComma,
}

Represents an error generated while compiling to bytecode.

Variants

ArityError

Error in arity for call to system function

Fields

name: Name

Name of function

expected: Arity

Expected count or range of arguments

found: u32

Number of arguments present

CannotDefine(Name)

Attempt to define name of standard value or operator

ConstantExists(Name)

Attempt to define name held by const value

DuplicateExports

Duplicate exports declaration

DuplicateModuleDoc

Duplicate module-doc declaration

DuplicateParameter(Name)

Duplicate name in parameter list

ExportError

Attempt to export nonexistent name from module

Fields

module: Name

Module name

name: Name

Imported name

ImportCycle(Name)

Recursion in module imports

ImportError

Attempt to import nonexistent name from module

Fields

module: Name

Module name

name: Name

Imported name

ImportShadow

Attempt to import name which already exists

Fields

module: Name

Module name

name: Name

Imported name

InvalidCallExpression(&'static str)

Invalid expression to function call

InvalidCommaAt

,@expr form outside of a list

InvalidModuleName(Name)

Module name contains invalid characters

MacroRecursionExceeded

Recursion limit exceeded while expanding macros

MissingExport

Missing export declaration in loaded module

ModuleError(Name)

Failed to load a module

NotConstant(Name)

const operator value is not constant

OperandOverflow(u32)

Operand value overflow

PrivacyError

Attempt to import value that is not exported

Fields

module: Name

Module name

name: Name

Imported name

SyntaxError(&'static str)

Error in parsing operator syntax

UnbalancedComma

More commas than backquotes

Trait Implementations

impl Debug for CompileError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for CompileError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl NameDisplay for CompileError
[src]

fn fmt(&self, names: &NameStore, f: &mut Formatter) -> Result

Writes the value's display representation to the formatter stream.