com.phasmidsoftware.gryphon.parse

Members list

Type members

Classlikes

class BaseParser[V, E, Z] extends JavaTokenParsers

A base class for parsing operations that extends the Scala JavaTokenParsers. This class provides utility methods and predefined parsers for parsing input strings into specific types V and E using the Parseable typeclass.

A base class for parsing operations that extends the Scala JavaTokenParsers. This class provides utility methods and predefined parsers for parsing input strings into specific types V and E using the Parseable typeclass.

Type parameters

E

The type of edge-attribute values to be parsed from the input, requiring an implicit Parseable[E].

V

The type of vertex-attribute values to be parsed from the input, requiring an implicit Parseable[V].

Z

The type of edge-type values to be parsed from the input, requiring an implicit Parseable[Z].

Attributes

Supertypes
trait JavaTokenParsers
trait RegexParsers
trait Parsers
class Object
trait Matchable
class Any
Show all
Known subtypes
class GraphParser[V, E, Z]
case class EmptyStringException(message: String) extends Exception

Exception representing an error when an empty string is encountered where it is not allowed.

Exception representing an error when an empty string is encountered where it is not allowed.

Value parameters

message

The error message that provides additional information about the exception.

Attributes

Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class GraphParser[V, E, Z] extends BaseParser[V, E, Z]

A class for parsing graph-related data structures, including pairs of vertices and triplets (vertices connected by an edge). This class extends BaseParser and leverages its parsing utilities to handle graph-specific parsing tasks.

A class for parsing graph-related data structures, including pairs of vertices and triplets (vertices connected by an edge). This class extends BaseParser and leverages its parsing utilities to handle graph-specific parsing tasks.

Type parameters

E

The type of edge-attribute values to be parsed, requiring an implicit Parseable[E].

V

The type of vertex-attribute values to be parsed, requiring an implicit Parseable[V].

Z

The type of edge-type values to be parsed, requiring an implicit Parseable[Z].

Attributes

Supertypes
class BaseParser[V, E, Z]
trait JavaTokenParsers
trait RegexParsers
trait Parsers
class Object
trait Matchable
class Any
Show all

Companion object for the ParseException class.

Companion object for the ParseException class.

Provides utility methods for creating instances of the ParseException class.

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ParseException(message: String, t: Throwable) extends Exception

A specialized exception class representing errors encountered during parsing processes.

A specialized exception class representing errors encountered during parsing processes.

Value parameters

message

The detail message explaining the cause or context of the exception.

t

The underlying throwable cause of the exception, if available.

Attributes

Companion
object
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
object Parseable

This object contains several implementations of the Parseable typeclass for specific types.

This object contains several implementations of the Parseable typeclass for specific types.

It provides implicit objects for parsing strings into common types, such as String, Int, and Double. These implementations can be used where implicit conversions are required for parsing operations.

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Parseable.type
trait Parseable[T]

A trait that defines a typeclass for parsing strings into objects of type T.

A trait that defines a typeclass for parsing strings into objects of type T.

Classes or objects implementing this trait must provide an implementation for the parse method, which takes a string input and converts it into an instance of the type parameter T.

Type parameters

T

The type of the object that the input string will be parsed into.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes