Skip to content

Instantly share code, notes, and snippets.

@sonota88
sonota88 / langserver.rb
Last active April 15, 2025 09:34
Rubyで簡単な言語サーバー
require "json"
require "logger"
REQUEST_TABLE = {}
NOTIFICATION_TABLE = {}
LOGGER = Logger.new(File.join(__dir__, "debug.log"))
def log(msg) LOGGER.info(msg) end
def read_header