--- fixed ----------------------------------------------------------------------
pcb
D:\pdavies\Documents\KiCad\wetroom-shield\wetroom-shield.dsn
parser
string_quote
"
space_in_quoted_tokens
on
host_cad
KiCad's Pcbnew
host_version
(2013-07-07 BZR 4022)-stable
----solution-------------------------------------------------------------------
It is better to treat the value of string_quote as a string identifier. Of course, we can also use a temporary solution to check whether the current node is a string_quote when encountering ("), and not treat it as a string.
-----.dsn------------------------------------------------------------------------------ (string_quote ") (space_in_quoted_tokens on) (host_cad "KiCad's Pcbnew")
---result below ------------------------------------------------------------------------ pcb D:\pdavies\Documents\KiCad\wetroom-shield\wetroom-shield.dsn parser string_quote ) (space_in_quoted_tokens on) (host_cad KiCad's Pcbnew" host_version (2013-07-07 BZR 4022)-stable
--- fixed ---------------------------------------------------------------------- pcb D:\pdavies\Documents\KiCad\wetroom-shield\wetroom-shield.dsn parser string_quote " space_in_quoted_tokens on host_cad KiCad's Pcbnew host_version (2013-07-07 BZR 4022)-stable ----solution------------------------------------------------------------------- It is better to treat the value of string_quote as a string identifier. Of course, we can also use a temporary solution to check whether the current node is a string_quote when encountering ("), and not treat it as a string.
-- code ---------------------------------------------------------------------- c_pcb_dsn.cpp:read_tree