This commit is contained in:
Olof hagsand 2020-02-02 15:59:26 +01:00
parent 19e21be0bc
commit 5fc9fa0b8d
3 changed files with 3 additions and 5 deletions

View file

@ -111,7 +111,7 @@ identifier {namestart}{namechar}*
<INIT>\: { return COLON; }
<INIT>{identifier} { clixon_api_path_parselval.string = strdup(yytext);
return IDENTIFIER; }
<<INIT>. { clixon_api_path_parseerror(_AY, "LEXICAL ERROR\n"); return -1; }
<INIT>. { clixon_api_path_parseerror(_AY, "LEXICAL ERROR\n"); return -1; }
<KEYV>\, { return COMMA; }
<KEYV>\/ { BEGIN(INIT); return SLASH; }

View file

@ -73,8 +73,6 @@ clixon_json_parsewrap(void)
return 1;
}
%}
digit [0-9]
@ -82,7 +80,7 @@ integer {digit}+
real ({digit}+[.]{digit}*)|({digit}*[.]{digit}+)
exp ({integer}|{real})[eE][+-]{integer}
%x START§
%x START
%s STRING
%s ESCAPE

View file

@ -245,7 +245,7 @@ json_current_body(struct clicon_json_yacc_arg *jy,
*/
/* top: json -> value is also possible */
§json : value J_EOF { clicon_debug(2,"json->object"); YYACCEPT; }
json : value J_EOF { clicon_debug(2,"json->object"); YYACCEPT; }
;
value : J_TRUE { json_current_body(_JY, "true");}