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.