Reg

parsley.registers$.Reg$
See theReg companion class
object Reg

This object allows for the construction of a register via its make function.

Attributes

Companion:
class
Source:
registers.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Reg.type

Members list

Concise view

Value members

Concrete methods

def make[A]: Reg[A]

This function creates a new (global) register of a given type.

This function creates a new (global) register of a given type.

The register created by this function is not allocated to any specific parser until it has been used by a parser. It should not be used with multiple different parsers.

Attributes

A

the type to be contained in this register during runtime

Returns:

a new register which can contain the given type.

Since:

2.2.0

Note:

registers created in this manner must be initialised in the top-level parser and not inside a flatMap, as this may make them corrupt other registers. They should be used with caution. It is recommended to use makeReg and fillReg where possible.

Source:
registers.scala