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
Formula navigation and evaluation for YAML engineering formulas and C/C++ constants directly inside Visual Studio Code.
3
+
**See the real values your compiler produces. Catch errors before they hit your firmware. Navigate formulas instantly.**
4
+
5
+
**CalcDocs is your real‑time engineering sanity checker.**
6
+
7
+
It prevents subtle errors by showing you actual computed values — the ones you'd only catch *after* compiling — and keeps your formulas and C/C++ constants perfectly synchronized.
8
+
9
+
CalcDocs is a VS Code extension designed for firmware and embedded developers who work with engineering formulas in YAML and constants in C/C++.
10
+
It helps you **keep formulas, documentation, and code always aligned** — automatically.
11
+
12
+
## 🔥 Why CalcDocs?
13
+
Writing engineering formulas and constants across YAML and C/C++ files often leads to hidden issues:
14
+
- A formula looks correct… but the final computed value is wrong.
15
+
- A `#define` expands to something unexpected.
16
+
- A constant silently overflows the target type.
17
+
- Documentation and code drift apart without anyone noticing.
18
+
19
+
CalcDocs solves all of this by showing you **what the compiler would really compute**, directly inside your editor.
- `int*_t`, `uint*_t` forms (e.g. `int32_t`, `uint16_t`)
224
+
- optional `unsigned` prefix
225
+
226
+
Current limits:
227
+
228
+
- Function-like macros are ignored (for example `#define F(x) ...`).
229
+
- Multi-line macros are not parsed as a single expression.
230
+
- `const`declarations with unsupported types (for example pointers, structs, custom typedefs not matching supported patterns) are ignored for numeric extraction.
231
+
- Expressions that do not reduce to a finite numeric value are left unresolved.
232
+
233
+
---
234
+
113
235
## 🧪 Quick Example
114
236
115
237
```yaml
@@ -149,7 +271,7 @@ Contributions are welcome, especially for:
149
271
150
272
If you find this extension useful, consider sponsoring the project.
0 commit comments