This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,21 @@
type version = int * int
type version_range =
| Only of version
| Up_to of version
| From of version
| Between of version * version
(*[[%%ignore]], [[%%expect{|...|}] or [%%expect_in 5.3 {|...|}]*)
type expect_block =
| Ignore
| Regular
| Versioned of (version_range * string) list
type chunk = {
phrases : string;
phrases_start : Lexing.position;
expect : expect_block;
}
val split_file : file_contents:string -> Lexing.lexbuf -> chunk list