You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`warning "STRING" - Print STRING to standard error output stream
143
+
`warning "STRING" -- Print STRING to standard error output stream
134
144
135
-
`error "STRING" - Print STRING to standard error output stream
136
-
Will force close VHDLproc without saving
145
+
`error "STRING" -- Print STRING to standard error output stream
146
+
-- Will force close VHDLproc without saving
137
147
138
148
-- Additional extensions not part of VHDL-2019
139
149
140
-
`define LABEL "STRING" - Gives LABEL the value of STRING for
141
-
conditional statements
150
+
`define LABEL "STRING" -- Gives LABEL the value of STRING for
151
+
-- conditional statements
152
+
153
+
`include "FILENAME" -- Include another file relative to
154
+
-- the location of the source
142
155
143
-
`include "FILENAME" - Include another file relative to
144
-
the location of the source
156
+
`end include "FILENAME" -- This is a counterpart to `include for parsing commented directives
157
+
-- in-place, should not be used directly (added automatically)
158
+
-- Sets the bound of where to replace when re-including a file
145
159
```
146
160
147
161
### Identifiers (or Labels)
@@ -154,6 +168,8 @@ By default, `TOOL_NAME` is set to `VHDLproc` and `TOOL_VERSION` is set to the cu
154
168
-[ ] Prevent a file from including itself (to prevent infinite loops)
155
169
-[ ] Modify text and file operations to work on Windows (if they don't already)
156
170
-[ ] Throw an error if a `` `warning `` or `` `error `` string isn't wrapped in quotes
171
+
-[x] Parse comments / files in-place
172
+
-[x] Fix precedence of operators
157
173
-[x] Add the option to the CLI to take in a series of file inputs, process them, save the individual results to temporary files (i.e. in `/tmp/` or a local path), then return all of the filepaths. This would be useful for doing this with GHDL: `ghdl -a $(vhdlproc *.vhdl)`.
With the flag `--parse-comments`, directives are executed in-place as if they weren't commented. Code added by an `include` directive is replaced with an updated version, bounded by a corresponding `end include`.
0 commit comments