group
function group(
patternOrCombinator,
name?,
valueType?): Combinator;
A Combinator to group pattern. When name is provided, it will be one of the
keys that returned from
Parameters
| Parameter | Type | Description |
|---|---|---|
patternOrCombinator | PatternCombinator | The pattern to group |
name? | string | The name for the capturing. when no provided, there is no capturing |
valueType? | ValueType | The type that the capture should be. |
Returns
Combinator
See
- Parser. This will be the main function to extract information for parsing
- ValueType
Default Value
'string'