diff options
author | Brian Padalino <bpadalino@gmail.com> | 2021-09-23 01:44:59 -0400 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2021-09-24 07:29:46 +0200 |
commit | dfd094273e636fb275a7416a1c470d0b136e9362 (patch) | |
tree | c3381b2f291dd0edb6da5f2b77c049b265257241 /pyGHDL/libghdl/vhdl/tokens.py | |
parent | a076bcb8121ea03b626447f5dace625415697600 (diff) | |
download | ghdl-dfd094273e636fb275a7416a1c470d0b136e9362.tar.gz ghdl-dfd094273e636fb275a7416a1c470d0b136e9362.tar.bz2 ghdl-dfd094273e636fb275a7416a1c470d0b136e9362.zip |
Add parsing of case? statement and simple test.
Also add the Matching flag to the Iir_Kind_Case_Statement.
Diffstat (limited to 'pyGHDL/libghdl/vhdl/tokens.py')
-rw-r--r-- | pyGHDL/libghdl/vhdl/tokens.py | 363 |
1 files changed, 182 insertions, 181 deletions
diff --git a/pyGHDL/libghdl/vhdl/tokens.py b/pyGHDL/libghdl/vhdl/tokens.py index 32eb302c8..ed2e9f9dc 100644 --- a/pyGHDL/libghdl/vhdl/tokens.py +++ b/pyGHDL/libghdl/vhdl/tokens.py @@ -52,184 +52,185 @@ class Tok(IntEnum): Plus = 41 Minus = 42 Ampersand = 43 - Condition = 44 - Double_Less = 45 - Double_Greater = 46 - Caret = 47 - And_And = 48 - Bar_Bar = 49 - Left_Curly = 50 - Right_Curly = 51 - Exclam_Mark = 52 - Brack_Star = 53 - Brack_Plus_Brack = 54 - Brack_Arrow = 55 - Brack_Equal = 56 - Bar_Arrow = 57 - Bar_Double_Arrow = 58 - Minus_Greater = 59 - Equiv_Arrow = 60 - Arobase = 61 - Star = 62 - Slash = 63 - Mod = 64 - Rem = 65 - Abs = 66 - Not = 67 - Access = 68 - After = 69 - Alias = 70 - All = 71 - Architecture = 72 - Array = 73 - Assert = 74 - Attribute = 75 - Begin = 76 - Block = 77 - Body = 78 - Buffer = 79 - Bus = 80 - Case = 81 - Component = 82 - Configuration = 83 - Constant = 84 - Disconnect = 85 - Downto = 86 - Else = 87 - Elsif = 88 - End = 89 - Entity = 90 - Exit = 91 - File = 92 - For = 93 - Function = 94 - Generate = 95 - Generic = 96 - Guarded = 97 - If = 98 - In = 99 - Inout = 100 - Is = 101 - Label = 102 - Library = 103 - Linkage = 104 - Loop = 105 - Map = 106 - New = 107 - Next = 108 - Null = 109 - Of = 110 - On = 111 - Open = 112 - Others = 113 - Out = 114 - Package = 115 - Port = 116 - Procedure = 117 - Process = 118 - Range = 119 - Record = 120 - Register = 121 - Report = 122 - Return = 123 - Select = 124 - Severity = 125 - Signal = 126 - Subtype = 127 - Then = 128 - To = 129 - Transport = 130 - Type = 131 - Units = 132 - Until = 133 - Use = 134 - Variable = 135 - Wait = 136 - When = 137 - While = 138 - With = 139 - And = 140 - Or = 141 - Xor = 142 - Nand = 143 - Nor = 144 - Xnor = 145 - Group = 146 - Impure = 147 - Inertial = 148 - Literal = 149 - Postponed = 150 - Pure = 151 - Reject = 152 - Shared = 153 - Unaffected = 154 - Sll = 155 - Sla = 156 - Sra = 157 - Srl = 158 - Rol = 159 - Ror = 160 - Protected = 161 - Assume = 162 - Context = 163 - Cover = 164 - Default = 165 - Force = 166 - Parameter = 167 - Property = 168 - Release = 169 - Restrict = 170 - Restrict_Guarantee = 171 - Sequence = 172 - Vmode = 173 - Vprop = 174 - Vunit = 175 - Across = 176 - Break = 177 - Limit = 178 - Nature = 179 - Noise = 180 - Procedural = 181 - Quantity = 182 - Reference = 183 - Spectrum = 184 - Subnature = 185 - Terminal = 186 - Through = 187 - Tolerance = 188 - Psl_Clock = 189 - Psl_Endpoint = 190 - Psl_Const = 191 - Psl_Boolean = 192 - Inf = 193 - Within = 194 - Abort = 195 - Async_Abort = 196 - Sync_Abort = 197 - Before = 198 - Before_Em = 199 - Before_Un = 200 - Before_Em_Un = 201 - Always = 202 - Never = 203 - Eventually_Em = 204 - Next_Em = 205 - Next_A = 206 - Next_A_Em = 207 - Next_E = 208 - Next_E_Em = 209 - Next_Event = 210 - Next_Event_Em = 211 - Next_Event_A = 212 - Next_Event_A_Em = 213 - Next_Event_E = 214 - Next_Event_E_Em = 215 - Until_Em = 216 - Until_Un = 217 - Until_Em_Un = 218 - Prev = 219 - Stable = 220 - Fell = 221 - Rose = 222 - Onehot = 223 - Onehot0 = 224 + Question_Mark = 44 + Condition = 45 + Double_Less = 46 + Double_Greater = 47 + Caret = 48 + And_And = 49 + Bar_Bar = 50 + Left_Curly = 51 + Right_Curly = 52 + Exclam_Mark = 53 + Brack_Star = 54 + Brack_Plus_Brack = 55 + Brack_Arrow = 56 + Brack_Equal = 57 + Bar_Arrow = 58 + Bar_Double_Arrow = 59 + Minus_Greater = 60 + Equiv_Arrow = 61 + Arobase = 62 + Star = 63 + Slash = 64 + Mod = 65 + Rem = 66 + Abs = 67 + Not = 68 + Access = 69 + After = 70 + Alias = 71 + All = 72 + Architecture = 73 + Array = 74 + Assert = 75 + Attribute = 76 + Begin = 77 + Block = 78 + Body = 79 + Buffer = 80 + Bus = 81 + Case = 82 + Component = 83 + Configuration = 84 + Constant = 85 + Disconnect = 86 + Downto = 87 + Else = 88 + Elsif = 89 + End = 90 + Entity = 91 + Exit = 92 + File = 93 + For = 94 + Function = 95 + Generate = 96 + Generic = 97 + Guarded = 98 + If = 99 + In = 100 + Inout = 101 + Is = 102 + Label = 103 + Library = 104 + Linkage = 105 + Loop = 106 + Map = 107 + New = 108 + Next = 109 + Null = 110 + Of = 111 + On = 112 + Open = 113 + Others = 114 + Out = 115 + Package = 116 + Port = 117 + Procedure = 118 + Process = 119 + Range = 120 + Record = 121 + Register = 122 + Report = 123 + Return = 124 + Select = 125 + Severity = 126 + Signal = 127 + Subtype = 128 + Then = 129 + To = 130 + Transport = 131 + Type = 132 + Units = 133 + Until = 134 + Use = 135 + Variable = 136 + Wait = 137 + When = 138 + While = 139 + With = 140 + And = 141 + Or = 142 + Xor = 143 + Nand = 144 + Nor = 145 + Xnor = 146 + Group = 147 + Impure = 148 + Inertial = 149 + Literal = 150 + Postponed = 151 + Pure = 152 + Reject = 153 + Shared = 154 + Unaffected = 155 + Sll = 156 + Sla = 157 + Sra = 158 + Srl = 159 + Rol = 160 + Ror = 161 + Protected = 162 + Assume = 163 + Context = 164 + Cover = 165 + Default = 166 + Force = 167 + Parameter = 168 + Property = 169 + Release = 170 + Restrict = 171 + Restrict_Guarantee = 172 + Sequence = 173 + Vmode = 174 + Vprop = 175 + Vunit = 176 + Across = 177 + Break = 178 + Limit = 179 + Nature = 180 + Noise = 181 + Procedural = 182 + Quantity = 183 + Reference = 184 + Spectrum = 185 + Subnature = 186 + Terminal = 187 + Through = 188 + Tolerance = 189 + Psl_Clock = 190 + Psl_Endpoint = 191 + Psl_Const = 192 + Psl_Boolean = 193 + Inf = 194 + Within = 195 + Abort = 196 + Async_Abort = 197 + Sync_Abort = 198 + Before = 199 + Before_Em = 200 + Before_Un = 201 + Before_Em_Un = 202 + Always = 203 + Never = 204 + Eventually_Em = 205 + Next_Em = 206 + Next_A = 207 + Next_A_Em = 208 + Next_E = 209 + Next_E_Em = 210 + Next_Event = 211 + Next_Event_Em = 212 + Next_Event_A = 213 + Next_Event_A_Em = 214 + Next_Event_E = 215 + Next_Event_E_Em = 216 + Until_Em = 217 + Until_Un = 218 + Until_Em_Un = 219 + Prev = 220 + Stable = 221 + Fell = 222 + Rose = 223 + Onehot = 224 + Onehot0 = 225 |