linol/lsp/bin/test_metamodel.ml
Simon Cruanes 7fbc187548 Squashed 'thirdparty/lsp/' content from commit aae69863
git-subtree-dir: thirdparty/lsp
git-subtree-split: aae6986391a8519de3da6a7a341f2bd3376e0d2f
2025-04-10 15:44:25 -04:00

11 lines
271 B
OCaml

module Metamodel = Lsp_gen.Metamodel
let file = Sys.argv.(1)
let () =
let read = open_in file in
let s = really_input_string read (in_channel_length read) in
let json = Yojson.Safe.from_string s in
let (_ : Metamodel.t) = Metamodel.t json in
close_in read
;;