Commit Graph
2 Commits
Author SHA1 Message Date
Ole André Vadla Ravnås 7119d4ca7e Detect JSON booleans without CoreFoundation
CFGetTypeID and CFBooleanGetTypeID are absent from swift-corelibs
Foundation, breaking the Linux and Windows builds. Decode r2's
JSON with a singleValueContainer cascade like R2Hex, where a JSON
boolean decodes as Bool and a number never does.
2026-06-27 10:19:48 +02:00
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