Files
luma/Sources/LumaCore/Models/REPLLanguage.swift
Ole André Vadla Ravnås b84bfa0a2b Add r2 as a first-class REPL language
Make the REPL prompt a clickable mode toggle between JavaScript
and r2; ":", ":r2" and ":js" switch from the keyboard. Carry the
language on REPLCell and REPLResult, route r2 input through the
session disassembler, and render output as a JSInspectValue tree
for JSON commands or ANSI-parsed styled text otherwise.
2026-06-26 16:45:21 +02:00

7 lines
121 B
Swift

import Foundation
public enum REPLLanguage: String, Codable, Sendable, CaseIterable {
case javascript
case r2
}