Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "xform/nest"

Index

Functions

Functions

Const nest

Const xfNest

  • HOF scope transform which applies given parser to result of given scope's result, or if result is null, first joins children using xfJoin.

    remarks

    The nested parser is applied to a separate ParseContext and if successful, the resulting AST will be transplated into the current parse scope. If the nested parser fails, the scope will remain untouched.

    If the current parse context retains line/column details, the inner parse context will be configured to produce true absolute offsets for its results as if they were in the main context.

    Parameters

    Returns ScopeTransform<string>

Generated using TypeDoc