daml-syntax
daml-syntax is the shared parsed-source surface for Daml tools in this
workspace. It owns source presentation around daml-parser: diagnostics, line
mapping, UTF-16 offsets, token/trivia access, and parser span conversion.
let source = "module M where\nfoo : Int\nfoo = 1\n";
let file = parse;
assert!;
assert_eq!;
assert_eq!;
For callers that only need lexer, trivia, or laid-out token facts, use the lighter tokenized surface:
let tokens = lex;
assert!;
assert!;