Package-level declarations

Types

Link copied to clipboard

Superclass of all errors caused by bad user input to the compiler.

Link copied to clipboard
Link copied to clipboard

Thrown when the lexer encounters an illegal character.

Link copied to clipboard

Thrown when a function or a method is given too many or too few arguments.

Link copied to clipboard

Superclass of errors related to information flow.

Link copied to clipboard

Thrown when the control flow influences data in a way that violates security.

Link copied to clipboard

Thrown when a term's output flows to a location that would violate information flow security.

Link copied to clipboard
class InvalidConstructorCallError(node: Node, constructorNeeded: Boolean = false) : CompilationError
Link copied to clipboard

Thrown when the protocol node is annotated with cannot implement node.

Link copied to clipboard

Thrown when a break, continue, or a similar statement occurs outside the scope of a loop.

Link copied to clipboard
class LabelMismatchError(node: HasSourceLocation, actualLabel: Label, expectedLabel: Label) : InformationFlowError

Thrown when the inferred label of a node does not match its annotated label.

Link copied to clipboard

Thrown when a DowngradeNode node violate the non-malleable information flow control restriction.

Link copied to clipboard
class NameClashError(name: Name, firstDeclaration: SourceLocation, secondDeclaration: SourceLocation) : CompilationError

Thrown when a Name has multiple declarations.

Link copied to clipboard

Thrown when there is no Protocol that can be assigned to node.

Link copied to clipboard

Thrown when trying to compile a program with no host declarations.

Link copied to clipboard

Thrown when trying to compile a program with no main.

Link copied to clipboard

Thrown when a required protocol annotation in node is not found.

Link copied to clipboard

Thrown when protocol selection cannot find a solution.

Link copied to clipboard
Link copied to clipboard
class ParsingError(location: SourceLocation, actualToken: String, expectedTokens: List<String>) : CompilationError

Thrown when the parser runs into an unexpected token.

Link copied to clipboard
class RuntimeError(val information: String, val node: HasSourceLocation? = null) : CompilationError
Link copied to clipboard
class TypeMismatchError(node: HasSourceLocation, actualType: Type, expectedType: Type) : CompilationError

Thrown when the inferred type of an AST node does not match its expected type.

Link copied to clipboard

Thrown when a Name is referenced before it is defined.

Link copied to clipboard

Thrown when a function is given an extra argument.

Link copied to clipboard

Thrown when an object is declared with an unknown datatype (class name).

Link copied to clipboard
class UnknownMethodError(objectName: ObjectVariableNode, methodName: MethodNameNode, objectType: ObjectType? = null, argumentTypes: List<ValueType>? = null) : CompilationError

Thrown when an object is called with a method it does not recognize.

Link copied to clipboard
class ViaductInterpreterError(val information: String, val node: HasSourceLocation? = null) : CompilationError