Problems parsing this sentence (ような before comma)


I was reading the examples from the book 日本語文型辞典 and I came across this
example sentence which I have absolutely no idea of how to parse it:

その子は、人と目が合うたびにやさしく笑いかけるような、そんな、人を疑うということを知らないような子だったと言う。

Is the first ような (笑いかける **ような** ) modifying 子, as well as the second? And what
is this そんな doing between commas?

Thanks!




It looks to me like two parallel phrases have been coordinated:

> Relative clause A = `人と目が合うたびにやさしく笑いかけるような`  
>  Relative clause B = `そんな、人を疑うということを知らないような`

Both relative clauses end with ようだ, conjugated to ような because they're
attributive modifiers. (An attributive modifier is one that comes before the
word it modifies.) In other words, they're being put together like a pair of
adjectives. I think you can parse it like this:

> その子は、（ Aな Bな ）子だったと言う。

Where both Aな and Bな modify 子.




It looks to me like two parallel phrases have been coordinated:

> Relative clause A = `人と目が合うたびにやさしく笑いかけるような`  
>  Relative clause B = `そんな、人を疑うということを知らないような`

Both relative clauses end with ようだ, conjugated to ような because they're
attributive modifiers. (An attributive modifier is one that comes before the
word it modifies.) In other words, they're being put together like a pair of
adjectives. I think you can parse it like this:

> その子は、（ Aな Bな ）子だったと言う。

Where both Aな and Bな modify 子.

