Hi Jernej,

Thanks for the explanation, that along with looking at section 6.1.2/6.1.3 makes this clear.

Cheers,
Rob


On 13/10/2015 11:07, Jernej Tuljak wrote:
Robert Wilton je 13.10.2015 ob 12:01 napisal:
Hi,

I was looking the Yang 1.1 ABNF Grammar, and noticed various places where the rules are specified as the directive "a string that matches the rule XXX", e.g.

    yang-version-arg-str = < a string that matches the rule
                            yang-version-arg >

    yang-version-arg    = "1"

It was slightly unclear to me exactly what is meant by this.

Am I right in understanding that the only valid text that would match yang-version-arg-str would be the 3 character sequence *"1"*, or is it more nuanced that this?

I.e. I presume that there is a good reason why these rules aren't just specified as the following:

yang-version-arg-str = DQUOTE yang-version-arg DQUOTE

The reason are probably YANG quotation rules. The "string that matches" is a dequoted string without any "+" or quotes, so the grammar rules don't have to handle those explicitly.

Jernej


Thanks,
Rob



_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod


_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to