Skip to content

Explicit per-include dialect (lang=) for foreign netlist includes#4

Draft
pepijndevos wants to merge 5 commits into
mainfrom
docs/vacask-explicit-include-dialect
Draft

Explicit per-include dialect (lang=) for foreign netlist includes#4
pepijndevos wants to merge 5 commits into
mainfrom
docs/vacask-explicit-include-dialect

Conversation

@pepijndevos

Copy link
Copy Markdown
Member

Summary

Enable VACASK include statements to explicitly name their foreign dialect (include "f" lang=ngspice section=tt) instead of inferring from file extension.

Changes

  • Thread dialect param through mixed parser parse_spectre_with (removes hardcoded Dialect::Ngspice)
  • Add dialect-string FFI: parse_netlist(src, language), parse_netlist_lib(src, section, language); removed parse_spectre_netlist
  • Case-insensitive dialect names; demo + README updated
  • Design spec + implementation plan included (docs/superpowers/)

Notes

  • Rust-side plumbing only — no runtime ngspice→VACASK model translation
  • Corresponding C++/lexer/bridge changes in VACASK repo (rust-parser-integration branch, PR #87)
  • Tests: cargo test -p netlist-cxx (18 tests) + netlist-syntax suites all pass

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant