this.me
    Preparing search index...

    Type Alias OperatorMatch

    OperatorMatch:
        | { matched: false }
        | {
            matched: true;
            token: OperatorToken;
            kind: OperatorKind;
            targetPath: SemanticPath;
            rewrittenExpression?: any;
            memoryOperator?: string;
            returnsValueAtRoot?: boolean;
        }

    Operator recognition can either match (and then execute) or pass.

    Type Declaration

    • { matched: false }
    • {
          matched: true;
          token: OperatorToken;
          kind: OperatorKind;
          targetPath: SemanticPath;
          rewrittenExpression?: any;
          memoryOperator?: string;
          returnsValueAtRoot?: boolean;
      }
      • matched: true
      • token: OperatorToken

        The operator token that matched (e.g. "_", "=")

      • kind: OperatorKind

        The operator kind from the registry

      • targetPath: SemanticPath

        The destination path that should receive the semantic write (operator leaf removed or otherwise transformed). In me.ts this is typically scope.

      • OptionalrewrittenExpression?: any

        The expression to write after the operator transforms it. e.g. pointer operator turns expression:string into {__ptr:string}

      • OptionalmemoryOperator?: string

        If operator is producing a semantic memory, what should be recorded as operator. (me.ts uses "" for both "" and "->" pointer calls).

      • OptionalreturnsValueAtRoot?: boolean

        Some operators return a value instead of writing when invoked at root.

        • root "=" thunk returns computed value
        • root "?" returns collected/transformed output