1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Copyright (c) 2026 Mike Grier
//! Glob syntax: the closed set of named dialects (D-15–D-20), each a front-end that
//! lowers a UTF-8 pattern into the shared segment-structured IR (D-18); the matcher
//! over 32-bit code points (D-46) with `*` / `**` / `?` / n-ary brace alternation
//! (D-24, D-44, D-67); anchor extraction and the pattern-set model (D-36–D-39).
//!
//! This module owns the dialect-independent core (IR, matcher, path splitting,
//! anchor extraction) plus the dialect front-ends (`dialect`, `parse`) that lower
//! each named dialect's pattern text into that IR; `upcase` backs case-folding.
/// A Unicode code point in the matcher's 32-bit space (D-46). Unlike [`char`] this
/// may hold an unpaired surrogate (Windows) or a surrogate-escaped byte (Linux), so
/// it is a raw `u32`, not a `char`.
pub type CodePoint = u32;
/// Whether matching folds case (D-23, D-28). The default is dialect-supplied.
/// One token within a single path segment (D-44). `*` and `?` never cross a
/// separator — crossing is [`PatternSegment::DoubleStar`]'s job (D-24).
/// A single path segment's matcher: a sequence of [`Token`]s.
pub type Segment = ;
/// One element of a compiled pattern's segment sequence (D-18).
/// A compiled, dialect-independent glob pattern (D-18): a sequence of segments.