squiggle/packages/squiggle-lang/src/rescript/ReducerProject/ReducerProject_ParseIncludes.res

9 lines
222 B
Plaintext
Raw Normal View History

@module("./ReducerProject_IncludeParser.js") external parse__: string => array<string> = "parse"
let parseIncludes = (expr: string): array<string> =>
try {
parse__(expr)
} catch {
| Js.Exn.Error(_obj) => []
}