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
use crate::*;

// -----------------------------------------------------------------------------

#[derive(Clone, Debug, PartialEq, Node)]
pub enum DriveStrength {
    Strength01(Box<DriveStrength01>),
    Strength10(Box<DriveStrength10>),
    Strength0z(Box<DriveStrength0z>),
    Strength1z(Box<DriveStrength1z>),
    Strengthz0(Box<DriveStrengthz0>),
    Strengthz1(Box<DriveStrengthz1>),
}

#[derive(Clone, Debug, PartialEq, Node)]
pub struct DriveStrength01 {
    pub nodes: (Paren<(Strength0, Symbol, Strength1)>,),
}

#[derive(Clone, Debug, PartialEq, Node)]
pub struct DriveStrength10 {
    pub nodes: (Paren<(Strength1, Symbol, Strength0)>,),
}

#[derive(Clone, Debug, PartialEq, Node)]
pub struct DriveStrength0z {
    pub nodes: (Paren<(Strength0, Symbol, Keyword)>,),
}

#[derive(Clone, Debug, PartialEq, Node)]
pub struct DriveStrength1z {
    pub nodes: (Paren<(Strength1, Symbol, Keyword)>,),
}

#[derive(Clone, Debug, PartialEq, Node)]
pub struct DriveStrengthz1 {
    pub nodes: (Paren<(Keyword, Symbol, Strength1)>,),
}

#[derive(Clone, Debug, PartialEq, Node)]
pub struct DriveStrengthz0 {
    pub nodes: (Paren<(Keyword, Symbol, Strength0)>,),
}

#[derive(Clone, Debug, PartialEq, Node)]
pub enum Strength0 {
    Supply0(Box<Keyword>),
    Strong0(Box<Keyword>),
    Pull0(Box<Keyword>),
    Weak0(Box<Keyword>),
}

#[derive(Clone, Debug, PartialEq, Node)]
pub enum Strength1 {
    Supply1(Box<Keyword>),
    Strong1(Box<Keyword>),
    Pull1(Box<Keyword>),
    Weak1(Box<Keyword>),
}

#[derive(Clone, Debug, PartialEq, Node)]
pub enum ChargeStrength {
    Small(Box<ChargeStrengthSmall>),
    Medium(Box<ChargeStrengthMedium>),
    Large(Box<ChargeStrengthLarge>),
}

#[derive(Clone, Debug, PartialEq, Node)]
pub struct ChargeStrengthSmall {
    pub nodes: (Paren<Keyword>,),
}

#[derive(Clone, Debug, PartialEq, Node)]
pub struct ChargeStrengthMedium {
    pub nodes: (Paren<Keyword>,),
}

#[derive(Clone, Debug, PartialEq, Node)]
pub struct ChargeStrengthLarge {
    pub nodes: (Paren<Keyword>,),
}