rules_derive 0.3.0

simple and fast derive macros using macro_rules
Documentation
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
//! This library allows you to define custom deriving instances using
//! `macro_rules!` macros rather than proc-macros. This is often much simpler.
//!
//! # Getting started
//!
//! Define a deriving macro with `macro_rules!()`:
//!
//! ```ignore
//! macro_rules! MyTrait {
//!   (/* see `rules_derive` for definition of signature */) => {
//!     // Generate impl
//!     impl $($generics_bindings)* MyTrait for $ty where $($generics_where)* {
//!       // implementation here
//!     }
//!   }
//! }
//! ```
//!
//! Then use it under the `rules_derive` attribute:
//!
//! ```ignore
//! #[rules_derive(MyTrait)]
//! struct MyType { x: u32, y: String }
//! ```
//!
//! The macro definition can be in the same crate or file as its use.
//!
//! See full examples [in the `examples` directory](https://github.com/MatX-inc/rules_derive/tree/main/examples).
//!
//! # Tutorial
//!
//! See the [announcement blog post](http://matx.com/research/rules_derive) for a tutorial.
//!
//! # Parsed syntax
//!
//! The `rules_derive` macro parses any `enum`/`struct` definition into a
//! simpler-to-parse format, which it then passes to your macro. The primary
//! transformations it does are:
//!
//! * Convert all enum/struct syntaxes and named-field/unnamed-field/unit
//!   syntaxes into a uniform sum-of-products syntax.
//! * Convert any generic parameters in the typical ways needed for `impl`
//!   headers.
//!
//! The motivation for these transformations is given in the [announcement blog post](http://matx.com/research/rules_derive).
//! Here is an example of the effect of this transformation:
//!
//! ```ignore
//! // Rust type definition:
//! #[rustfmt::skip]
//! pub enum Foo<T: Clone = u8> where u8: Into<T> {
//!     A { x: T },
//!     B,
//!     C(u8),
//! }
//!
//! // rules_derive-transformed type definition:
//! ((#[rustfmt::skip]))
//! pub enum Foo ((Foo<T>) (<T: Clone>) (T: Clone) where (u8: Into<T>,))
//! {
//!     A (named Foo::A) { f_x @ x : T, }
//!     B (unit Foo::B) {}
//!     C (unnamed Foo::C) { tuple_field_0 @ 0 : u8, }
//! }
//! ```
//!
//! The generics appear three times: `(Foo<T>)` for naming the type, `(<T:
//! Clone>)` (`generics_bindings`, with the angle brackets) for `impl` headers,
//! and `(T: Clone)` (`generics_inner`, without the angle brackets) for splicing
//! extra parameters into an `impl`.
//!
//! This transformed type definition is then passed to your macro. You can see
//! the `macro_rules!` header that accepts this transformed type definition on
//! the [`rules_derive`] documentation.

// `Span::join` (used by `spanned!` under the `nightly` feature to widen a span
// across multiple tokens) is gated behind the unstable `proc_macro_span`
// feature. Enable it only when the `nightly` feature is on.
#![cfg_attr(feature = "nightly", feature(proc_macro_span))]

use proc_macro::Delimiter;
use proc_macro::Group;
use proc_macro::Ident;
use proc_macro::TokenStream;
use proc_macro::TokenTree;
mod parsing;
use parsing::*;

/// Provides `#[rules_derive(Foo, Bar)]` to derive `Foo` and `Bar` for a struct
/// or enum.
///
/// Each derivable trait must be implemented by a macro named e.g. `Foo`, which
/// should accept the following protocol. You typically want to copy-paste this
/// header. You may also accept specalizations of the protocol, e.g. removing
/// some of the repetitions (to specialize for a specific number of fields or
/// variants) or specializing `$tystyle` to `struct` or `enum`.
///
/// TODO: remove redundant parens around (a) attr:tt, (b) `ty, generics_bindings
/// where generics_where`.
///
/// The full protocol:
///
/// ```no_run
/// macro_rules! Foo {
///   (
///     ($( ($($attr:tt)*) )*)
///     $vis:vis $tystyle:ident $name:ident (($ty:ty) ($($generics_bindings:tt)*) ($($generics_inner:tt)*) where ($($generics_where:tt)*)) {
///       $(
///         $variant_name:ident ($variant_style:ident $($qualified_variant:tt)*) $(= ($discriminant:expr))? {
///           $(
///             $fieldvis:vis $fieldnameident:ident @ $fieldname:tt : $fieldty:ty,
///           )*
///         }
///       )*
///     }
///   ) => { ... }
/// }
/// ```
///
/// Here is an example of the effect of this transformation:
///
/// ```ignore
/// // Rust type definition:
/// #[rustfmt::skip]
/// pub enum Foo<T: Clone = u8> where u8: Into<T> {
///     A { x: T },
///     B,
///     C(u8),
/// }
///
/// // rules_derive-transformed type definition:
/// ((#[rustfmt::skip]))
/// pub enum Foo ((Foo<T>) (<T: Clone>) (T: Clone) where (u8: Into<T>,))
/// {
///     A (named Foo::A) { f_x @ x : T, }
///     B (unit Foo::B) {}
///     C (unnamed Foo::C) { tuple_field_0 @ 0 : u8, }
/// }
/// ```
///
/// If parameters are provided to the rules_derive macro name in parentheses,
/// square brackets, or curly braces (e.g. `rules_derive(Iterator(Item = (I, &'a
/// T)))`), the contents of the parameter list are passed verbatim to the macro
/// before the type description, enclosed in curly braces, so a macro definition
/// that matches calls with the above parameters looks like:
///
/// ```no_run
/// macro_rules! Iterator {
///   (
///     { Item = $item_ty:ty }
///     ... /* type description protocol */ ...
///   ) => { ... }
/// }
/// ```
///
/// See full examples [in the `examples` directory](https://github.com/MatX-inc/rules_derive/tree/main/examples).
#[proc_macro_attribute]
pub fn rules_derive(attr: TokenStream, item: TokenStream) -> TokenStream {
  let mut result = vec![
    punct('#'),
    brackets([
      ident("derive"),
      parens([
        punct_joint(':'),
        punct(':'),
        ident("rules_derive"),
        punct_joint(':'),
        punct(':'),
        ident("__RulesDerive"),
      ]),
    ]),
    punct('#'),
    brackets([ident("__rules_derive"), parens(attr)]),
  ];
  result.extend(item);
  result.into_iter().collect()
}

/// Internal proc macro that implements the `#[rules_derive(...)]` attribute.
///
/// Even though the `#[rules_derive(...)]` user-facing syntax
/// (i.e. it's a proc_macro_attribute) is ideal, we want the semantics of
/// proc_macro_derive, because Rust resolves #[cfg(...)] attributes after
/// proc_macro_attribute but before proc_macro_derive. Hence we bounce
/// #[rules_derive(...)] through `#[derive(::rules_derive::__RulesDerive)]
/// #[__rules_derive(...)]` to get the #[cfg(...)] attributes to resolve
/// correctly.
#[doc(hidden)]
#[proc_macro_derive(__RulesDerive, attributes(__rules_derive))]
pub fn rules_derive_impl(item: TokenStream) -> TokenStream {
  render_macro_result(rules_derive_inner(item))
}

fn rules_derive_inner(item: TokenStream) -> Result<TokenStream> {
  // Following https://doc.rust-lang.org/reference/items.html, we parse `Item`, which must
  // be `Struct`, or `Enumeration`.
  //
  // Item →
  //   OuterAttribute* ( VisItem | MacroItem )
  // VisItem →
  //   Visibility?
  //   (
  //     ...
  //     | Struct
  //     | Enumeration
  //   )
  let mut item = ParseState::new(item.into_iter());
  let mut description = Vec::new();
  let attr: TokenStream;

  // OuterAttribute*
  {
    let mut attrs = Vec::new();
    attr = parse_item_attributes(&mut item, &mut attrs)?;
    description.push(parens(attrs));
  }

  // Visibility?
  parse_visibility(&mut item, &mut description);

  // Struct → StructStruct | TupleStruct
  //
  // StructStruct → struct IDENTIFIER GenericParams? WhereClause? ( {
  //   StructFields? } | ; )
  //
  // TupleStruct →
  //   struct IDENTIFIER GenericParams? `(` TupleFields? `)` WhereClause? ;
  //
  // Enumeration → enum IDENTIFIER GenericParams? WhereClause? { EnumItems? }
  //
  // Parse `struct` or `enum`.
  let TokenTree::Ident(tystyle_ident) = item.next()? else {
    return item.error(&"expected `struct` or `enum` for #[rules_derive]");
  };
  enum TyStyle {
    Struct,
    Enum,
  }
  let tystyle = match tystyle_ident.to_string().as_str() {
    "struct" => TyStyle::Struct,
    "enum" => TyStyle::Enum,
    "union" => {
      return Err(Msg(
        tystyle_ident.span(),
        &"`union` is not supported by #[rules_derive]",
      ))
    }
    _ => {
      return Err(Msg(
        tystyle_ident.span(),
        &"expected `struct` or `enum` for #[rules_derive]",
      ))
    }
  };
  description.push(TokenTree::Ident(tystyle_ident));

  // Parse type name.
  let type_name = item.next()?;
  description.push(type_name.clone());

  // GenericParams?
  let (ty, generics_bindings, generics_inner) = parse_generics(&mut item, &type_name)?;

  // StructStruct → ... WhereClause? ( {
  //   StructFields? } | ; )
  //
  // TupleStruct → ... `(` TupleFields? `)` WhereClause? ;
  //
  // Enumeration → ... WhereClause? { EnumItems? }
  //
  // We parse `WhereClause?` now. In the TupleStruct we may have to come back and
  // parse it again.
  let mut generics_where = Vec::new();
  parse_where_clause(&mut item, &mut generics_where)?;

  let mut variants = Vec::new();

  match item.next()? {
    TokenTree::Group(group) => {
      match group.delimiter() {
        proc_macro::Delimiter::Brace => match tystyle {
          TyStyle::Struct => {
            // StructStruct → ... { StructFields? }
            let fields = parse_named_fields(group.stream())?;
            variants.push(type_name.clone());
            variants.push(parens([
              with_span(group.span_open(), ident("named")),
              type_name.clone(),
            ]));
            variants.push(braces(fields));
          }
          TyStyle::Enum => {
            // Enumeration → ... { EnumItems? }
            // EnumItems → EnumItem ( , EnumItem )* ,?
            let mut input_variants = ParseState::new(group.stream().into_iter());
            while !input_variants.at_end() {
              // EnumItem →
              //   OuterAttribute* Visibility?
              //   IDENTIFIER ( EnumItemTuple | EnumItemStruct )? EnumItemDiscriminant?
              skip_outer_attributes(&mut input_variants)?; // TODO: attributes

              // `Visibility?` is actually illegal here.
              let variant_name = input_variants.next()?; // IDENTIFIER
              let (variant_metadata, fields) =
                if let Some(TokenTree::Group(_)) = &input_variants.peeks[0] {
                  let TokenTree::Group(enum_item) = input_variants.must_next() else {
                    unreachable!()
                  };
                  match enum_item.delimiter() {
                    proc_macro::Delimiter::Parenthesis => {
                      // Input: EnumItemTuple → `(` TupleFields? `)`
                      // Output:
                      // variant_metadata: ($variant_style:ident $($qualified_variant:tt)*)
                      // fields: {   $(
                      //     $fieldvis:vis $fieldnameident:ident @ $fieldname:tt : $fieldty:ty,
                      //   )*
                      // }
                      let variant_metadata = parens([
                        with_span(enum_item.span(), ident("unnamed")),
                        type_name.clone(),
                        punct_joint(':'),
                        punct(':'),
                        variant_name.clone(),
                      ]);
                      let fields = braces(parse_unnamed_fields(enum_item.stream())?);
                      (variant_metadata, fields)
                    }
                    proc_macro::Delimiter::Brace => {
                      // Input: EnumItemStruct → { StructFields? }
                      // Output:
                      // variant_metadata: ($variant_style:ident $($qualified_variant:tt)*)
                      // fields: {   $(
                      //     $fieldvis:vis $fieldnameident:ident @ $fieldname:tt : $fieldty:ty,
                      //   )*
                      // }
                      let variant_metadata = parens([
                        with_span(enum_item.span(), ident("named")),
                        type_name.clone(),
                        punct_joint(':'),
                        punct(':'),
                        variant_name.clone(),
                      ]);
                      let fields = braces(parse_named_fields(enum_item.stream())?);
                      (variant_metadata, fields)
                    }
                    _ => {
                      return input_variants.error(&"Parse error");
                    }
                  }
                } else {
                  // Unit variant.
                  let variant_metadata = parens([
                    with_span(input_variants.span(), ident("unit")),
                    type_name.clone(),
                    punct_joint(':'),
                    punct(':'),
                    variant_name.clone(),
                  ]);
                  let fields = braces([]);
                  (variant_metadata, fields)
                };

              let mut discriminant = Vec::new();
              if input_variants.peek_punct(0, b"=") {
                input_variants.copy(1, &mut discriminant)?; // '='
                let mut inner_discriminant = Vec::new();
                parse_expression(&mut input_variants, &mut inner_discriminant)?;
                discriminant.push(parens(inner_discriminant));
              }
              // $variant_name:ident ($variant_style:ident $($qualified_variant:tt)*) $(=
              // ($discriminant:expr))? {   $(
              //     $fieldvis:vis $fieldnameident:ident @ $fieldname:tt : $fieldty:ty,
              //   )*
              // }
              variants.push(variant_name);
              variants.push(variant_metadata);
              variants.extend(discriminant);
              variants.push(fields);

              if input_variants.peek_punct(0, b",") {
                input_variants.next().unwrap(); // ','
              }
            }
          }
        },
        proc_macro::Delimiter::Parenthesis => {
          // TupleStruct → ... `(` TupleFields? `)` WhereClause? ;
          //
          // Output:
          // $variant_name:ident ($variant_style:ident $($qualified_variant:tt)*) $(=
          // ($discriminant:expr))? {   $(
          //     $fieldvis:vis $fieldnameident:ident @ $fieldname:tt : $fieldty:ty,
          //   )*
          // }
          variants.push(type_name.clone()); // $variant_name
          variants.push(parens([
            with_span(group.span_open(), ident("unnamed")),
            type_name.clone(),
          ]));
          variants.push(braces(parse_unnamed_fields(group.stream())?));
          parse_where_clause(&mut item, &mut generics_where)?;
          item.next()?; // ';'
        }
        _ => {
          return item.error(&"Parse error");
        }
      }
    }
    TokenTree::Punct(punct) => {
      if punct.as_char() != ';' {
        return item.error(&"Parse error");
      }
      // Unit struct.
      variants.push(type_name.clone()); // $variant_name
      variants.push(parens([
        with_span(punct.span(), ident("unit")),
        type_name.clone(),
      ]));
      variants.push(braces([]));
    }
    _ => return item.error(&"Parse error"),
  }
  description.push(parens([
    parens(ty),
    parens(generics_bindings),
    parens(generics_inner),
    ident("where"),
    parens(generics_where),
  ]));
  description.push(braces(variants));

  // Parse `#[rules_derive(Foo(...), Bar)]` attribute.
  let mut derives = Vec::new();
  let mut attr = ParseState::new(attr.into_iter());
  while !attr.at_end() {
    // macro_name ( ... ),
    let mut extra_args = None;
    let mut is_empty = true;
    while let Ok(t) = attr.next() {
      derives.push(t);
      is_empty = false;
      if let Some(TokenTree::Group(_)) = &attr.peeks[0] {
        let Ok(TokenTree::Group(group)) = attr.next() else {
          unreachable!()
        };
        extra_args = Some(group.stream());
        break;
      }
      if attr.at_end() || attr.peek_punct(0, b",") {
        break;
      }
    }
    if attr.peek_punct(0, b",") {
      attr.next()?; // ','
    }
    if is_empty {
      break;
    }
    derives.push(punct('!'));
    let mut description_with_args = Vec::new();
    if let Some(extra_args) = extra_args {
      description_with_args.push(braces(extra_args));
    }
    description_with_args.extend(description.clone());
    derives.push(parens(description_with_args));
    derives.push(punct(';'));
  }

  Ok(derives.into_iter().collect())
}

/// Creates an identifier from the concatenation of identifiers and literals.
///
/// For example, `make_ident!(foo, "bar", 123)` becomes `foobar123`.
#[proc_macro]
pub fn make_ident(item: TokenStream) -> TokenStream { render_macro_result(make_ident_inner(item)) }

fn make_ident_inner(item: TokenStream) -> Result<TokenStream> {
  let mut name = String::new();
  for t in item {
    match t {
      TokenTree::Ident(ident) => {
        name.push_str(&ident.to_string());
      }
      TokenTree::Literal(literal) => {
        name.push_str(&literal.to_string());
      }
      _ => {
        return Err(Msg(
          t.span(),
          &"make_ident! only accepts idents and literals",
        ));
      }
    }
  }
  Ok(TokenTree::Ident(Ident::new(&name, proc_macro::Span::call_site())).into())
}

/// Provides a way for `macro_rules` to annotate pieces of syntax with source
/// spans, so that you may improve error messages to point to the correct source
/// span.
///
/// Within the scope of an outer `with_spans!(...)` invocation, you may use
/// `spanned!(foo => tokens...)` to cause the `tokens...` to be annotated with
/// the source location attached to `foo`. The `foo` must be a single
/// token-tree.
///
/// The most common use case is to attribute missing instances in a
/// `rules_derive` macro to a particular field of the source type. For this use
/// case, you should use the `$fieldty` token-tree as the source span to
/// attach to.
///
/// Why provide `with_spans!(...)` as a proc macro instead of directly providing
/// `spanned!(...)` as a proc macro? Because the latter is too restrictive: Rust
/// only allows a limited number of syntactic places where a macro invocation is
/// allowed, and we need to use `spanned!(...)` in locations where macro
/// invocations are not allowed, such as impl "where" clauses. The two-level
/// `with_spans!(... spanned!(...) ...)` approach allows us to work around this
/// limitation.
#[proc_macro]
pub fn with_spans(item: TokenStream) -> TokenStream {
  let mut result = Vec::new();
  let result = process_stream(None, ParseState::new(item.into_iter()), &mut result)
    .map(|()| result.into_iter().collect());
  render_macro_result(result)
}

// A traversal of the token tree that tracks the `span` of the closest ancestor
// `spanned!(foo => ...)` and recursively applies that to all tokens in the
// tree.
//
// We simultaneously search for the `spanned!(...)` pattern of tokens (3
// consecutive tokens) and apply span adjustments to all tokens in the tree.
//
// We append to `dst` rather than returning it, so as to avoid redundant copying
// (which would be a two-pass algorithm) when we flatten a `spanned!(...)`
// subtree into its parent.
fn process_stream(
  span: Option<proc_macro::Span>,
  mut stream: ParseState,
  dst: &mut Vec<TokenTree>,
) -> Result<()> {
  'token_loop: while !stream.at_end() {
    if stream.peek_ident(0, "spanned") && stream.peek_punct(1, b"!") && stream.peek_group(2) {
      // We got a match for spanned!(...).
      stream.must_next(); // spanned
      stream.must_next(); // !
      if let TokenTree::Group(group) = stream.must_next() {
        let mut inner_stream = ParseState::new(group.stream().into_iter());
        if let Ok(mut spanned_tt) = inner_stream.next() {
          // Look inside arbitrarily many outer nests of {} or invisible groups.
          //
          // macro_rules!() matching introduces invisible groups on metavariables such as
          // ty/expr, which groups together multiple tokens. We also allow users
          // to group together multiple spanned tokens with {} delimiters. In both
          // cases we want to see inside these layers of delimiters to get the spans of
          // the underlying tokens.
          let inner_span;
          loop {
            if let TokenTree::Group(g) = &spanned_tt {
              if matches!(g.delimiter(), Delimiter::None | Delimiter::Brace) {
                let mut delimiter_contents = g.stream().into_iter();
                let first = delimiter_contents.next();
                let last = delimiter_contents.fold(None, |_prev, next| Some(next));
                match (first, last) {
                  (Some(first), Option::None) => {
                    // There's just a single token. Recurse inside to check if that itself is a
                    // delimiter that we might look through.
                    spanned_tt = first;
                    continue;
                  }
                  (Some(first), Some(last)) => {
                    // Multiple tokens inside. Use them to set the span and then stop recursing.
                    #[cfg(feature = "nightly")]
                    {
                      // `Span::join` returns `None` when the two spans are in
                      // different source files; fall back to the first span.
                      inner_span = first
                        .span()
                        .join(last.span())
                        .unwrap_or_else(|| first.span());
                    }
                    #[cfg(not(feature = "nightly"))]
                    {
                      inner_span = first.span();
                      _ = last;
                    }
                    break;
                  }
                  _ => {
                    // No tokens inside. Stop recursing.
                  }
                }
              }
            }
            inner_span = spanned_tt.span();
            break;
          }
          if inner_stream.peek_punct(0, b"=>") {
            inner_stream.must_next(); // =
            inner_stream.must_next(); // >
            process_stream(Some(inner_span), inner_stream, dst)?;
            continue 'token_loop;
          }
        }
      }
      return stream.error(&"spanned!() must match syntax spanned!($span:tt => ...)");
    }
    dst.push(process_tree(span, stream.must_next())?);
  }
  Ok(())
}

fn process_tree(span: Option<proc_macro::Span>, tree: TokenTree) -> Result<TokenTree> {
  let mut tree = match tree {
    TokenTree::Group(g) => {
      let mut inner_dst = Vec::new();
      process_stream(
        span,
        ParseState::new(g.stream().into_iter()),
        &mut inner_dst,
      )?;
      TokenTree::Group(Group::new(g.delimiter(), inner_dst.into_iter().collect()))
    }
    tree => tree,
  };
  if let Some(span) = span {
    tree.set_span(tree.span().located_at(span));
  }
  Ok(tree)
}