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
68
69
70
71
72
73
74
75
76
77
//! The kind lists Tcl and iRules share (#1695; contract 5 of #1690).
//! Each is a fragment a dialect's row splices with `..name!()`, and
//! iRules adds its own kinds beside it. The grammars give these kinds
//! different ids, so a fragment spells variant *names* and
//! `role_table!` resolves each against the dialect enum the row names.
//!
//! A `binop_expr` names no operator field: its operator is one token
//! among its children, so each row's owner is gated on *having* a
//! payer child, and the row's projection — the first child whose kind
//! is a declared payer — is the lookup.
/// The comparison tokens both dialects spell inside a `binop_expr`:
/// the six symbols, the string comparators `eq` / `ne` and the list
/// membership tests `in` / `ni`. Each is a kind of its own that the
/// grammar emits only there.
/// `&&` / `||`, which both grammars emit only inside a `binop_expr`.
/// The string literal of both dialects (#1698): a `quoted_word`, which
/// `wraps` the `$var` and `[cmd]` substitutions whose inner nodes are
/// walked and billed on their own (#277), and the two braced spellings.
/// `braced_word` is the literal of `lappend x {a b}` — the grammar
/// reserves `braced_word_simple` for the handful of commands it models
/// (`set`, `foreach`, `regexp`, …) and spells every other command's
/// braced argument `braced_word`. The same kind is also every `proc` /
/// `if` body and every iRules `when` handler, which only the enclosing
/// command separates from the literal (#1381): the row gates it on
/// `is_braced_literal`, which each dialect emits over its own
/// `BracedWordKinds` through `Getter::is_braced_script_word` — the one
/// reader Halstead, `find string` and the dump flattening share (#1382).
/// The enclosing command is told by its leading word's bytes, so the
/// gate is `text_gated_by` (#1863).
/// The gate `tcl_family_strings!` reads, per dialect, over the
/// dialect's braced-word kinds table.
pub use ;