On Thu, Feb 21, 2019 at 05:26:43PM +0000, Peter Loborg wrote:
> The following two rules in section 14:
> 
> enum-stmt           = enum-keyword sep string optsep
>                          (";" /
>                           "{" stmtsep
>                               ;; these stmts can appear in any order
>                               *if-feature-stmt
>                               [value-stmt]
>                               [status-stmt]
>                               [description-stmt]
>                               [reference-stmt]
>                            "}") stmtsep
> 
> string              = < an unquoted string, as returned by >
>                          < the scanner, that matches the rule >
>                          < yang-string >

The key here is "as returned by the scanner".
 
> ...and the definition of unquoted string in section 6.1.3 about its 
> content... (not a problem in your example)
> 
>    An unquoted string is any sequence of characters that does not
>    contain any space, tab, carriage return, or line feed characters, a
>    single or double quote character, a semicolon (";"), braces ("{" or
>    "}"), or comment sequences ("//", "/*", or "*/").
> 
> ...and the explicit descriptions of single-quoted strings and double-quoted 
> strings further down in 6.1.3 as being enclosed by said quotes.

Section 6.1 defines the lexical rules and what the scanner returns is
an unquopted string but it accepts unquoted strings and quoted string
and combinations thereof with the "+" concatenation operator as input.

The errata should be rejected.

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>

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

Reply via email to