ScalaConstants
Class containing Scala-specific constants for the translation
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ScalaConstants.type
Members list
Value members
Concrete methods
Performs the translation of functions in ImpLan to functions in Scala Only functions starting and ending with two underscores (_) are translated. Note: Mutable datastructures are not yet handled on this branch since they are not generated
Performs the translation of functions in ImpLan to functions in Scala Only functions starting and ending with two underscores (_) are translated. Note: Mutable datastructures are not yet handled on this branch since they are not generated
Attributes
- name
Name of the function which is called
- oArgs
Argument expressions of the function call
- transFunc
Function used to translate the arguments
- typeHint
The type signature of the called function.
- Returns:
The translated function call in Scala
Translates an IntermediateCode.ImpLanType to its corresponding Scala type.
Translates an IntermediateCode.ImpLanType to its corresponding Scala type.
- The Lazy container type is translated as Function0
- The generic type is translated as Any
- The error type is translated as Throwable
- Options are translated to an own type ErrorOption which is able to capture an error
Attributes
- t
Type to be translated
- Returns:
Corresponding Scala type
Translates an IntermediateCode.ImpLanVal to its corresponding Scala value.
Translates an IntermediateCode.ImpLanVal to its corresponding Scala value.
- None/Some are translated to special values EONone/EOSome to be able to capture errors in Somes
Attributes
- v
The value to be translated
- Returns:
The corresponding value in Scala