Support for empty yang string added, eg default "";

if-feature added in yang parser at several places.
This commit is contained in:
Olof hagsand 2019-01-06 16:31:36 +01:00
parent 0502ca4218
commit bd67a2a5f2
5 changed files with 36 additions and 21 deletions

View file

@ -206,7 +206,7 @@ identifier [A-Za-z_][A-Za-z0-9_\-\.]*
<BOOLEAN>\{ { BEGIN(KEYWORD); return *yytext; }
<BOOLEAN>. { return *yytext; }
<INTEGER>[0-9][0-9]* { clixon_yang_parselval.string = strdup(yytext);
<INTEGER>\-?[0-9][0-9]* { clixon_yang_parselval.string = strdup(yytext);
return INT; }
<INTEGER>; { BEGIN(KEYWORD); return *yytext; }
<INTEGER>\{ { BEGIN(KEYWORD); return *yytext; }