You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Boost Spirit解析Spice网表的语法错误排查求助

Spice网表解析问题排查求助
  • 已定义CommentLine、ElementStatement、SpiceNetlist三个结构体,分别用于存储注释行与元件信息
  • 基于Boost Spirit编写了解析语法,但运行时存在两个问题:
    • 解析到第二个注释行时直接失败
    • 结构体的属性填充出现错误
  • 尝试将spice_netlist规则修改为:
    spice_netlist = qi::skip(qi::blank)[comment_lines >> *(statements | comment_lines)]
    
    修改后出现编译错误

请求排查:问题根源是spice_netlist规则、comment_line语法,还是Skipper的定义错误?

内容的提问来源于stack exchange,提问作者Daniel

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.30 05:10:53