Sha256: 7737bea7f96eeea5dc354ded990bba30166fc5b63f4a9775cbd1d3803466930b
Contents?: true
Size: 634 Bytes
Versions: 396
Compression:
Stored size: 634 Bytes
Contents
import ForthError.ForthError object ForthError extends Enumeration { type ForthError = Value val DivisionByZero, StackUnderflow, InvalidWord, UnknownWord = Value } trait ForthEvaluatorState { // TODO: Implement. return the current stack as Text with the element // on top of the stack being the rightmost element in the output." override def toString: String } abstract class Definition { def evaluate(state: Either[ForthError, ForthEvaluatorState]): Either[ForthError, ForthEvaluatorState] } trait ForthEvaluator { // TODO: Implement evaluation def eval(text: String): Either[ForthError, ForthEvaluatorState] }
Version data entries
396 entries across 396 versions & 1 rubygems