Parser

trait Parser

Interface that defines the configuration parser. All the parsers need to extend this trait in order to be compatible. Every module (jvm, js) has to implement its own configuration parser.

class Object
trait Matchable
class Any

Value members

Abstract methods

def loadConfiguration(program: String): Task[Option[Configuration]]
Value parameters:
program

The configuration file.

Returns:

an Option of the configuration if there are no errors, or a None otherwise.

def readFile(filePath: FilePath): Task[String]
Value parameters:
filePath

The path of the file.

Returns:

The content of the file as a String.

Concrete methods

def checkErrors(configuration: Configuration): Task[ConfigurationResult]
Value parameters:
configuration

The simulation parameters of the configuration.

Returns:

the result of configuration errors checking.