#if os(macOS) import Foundation import OrgApp import OrgCore /// Babel and Emacs as processes, for `DocumentSession.programs`. public struct Programs: ProgramRunning { public init() {} public func runBabel(_ job: BabelJob, fileDirectory: URL) async throws -> BabelOutput { try await BabelRunner.run(job, fileDirectory: fileDirectory) } public func recalculateTable(text: String, directory: URL, table: Range, point: Int, form: String) async throws -> String { try await EmacsRunner.recalculateTable(text: text, directory: directory, table: table, point: point, form: form) } } #endif