Support for empty yang string added, eg default "";
if-feature added in yang parser at several places.
This commit is contained in:
parent
0502ca4218
commit
bd67a2a5f2
5 changed files with 36 additions and 21 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue