typos
This commit is contained in:
parent
19e21be0bc
commit
5fc9fa0b8d
3 changed files with 3 additions and 5 deletions
|
|
@ -111,7 +111,7 @@ identifier {namestart}{namechar}*
|
||||||
<INIT>\: { return COLON; }
|
<INIT>\: { return COLON; }
|
||||||
<INIT>{identifier} { clixon_api_path_parselval.string = strdup(yytext);
|
<INIT>{identifier} { clixon_api_path_parselval.string = strdup(yytext);
|
||||||
return IDENTIFIER; }
|
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>\, { return COMMA; }
|
||||||
<KEYV>\/ { BEGIN(INIT); return SLASH; }
|
<KEYV>\/ { BEGIN(INIT); return SLASH; }
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,6 @@ clixon_json_parsewrap(void)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
digit [0-9]
|
digit [0-9]
|
||||||
|
|
@ -82,7 +80,7 @@ integer {digit}+
|
||||||
real ({digit}+[.]{digit}*)|({digit}*[.]{digit}+)
|
real ({digit}+[.]{digit}*)|({digit}*[.]{digit}+)
|
||||||
exp ({integer}|{real})[eE][+-]{integer}
|
exp ({integer}|{real})[eE][+-]{integer}
|
||||||
|
|
||||||
%x START§
|
%x START
|
||||||
%s STRING
|
%s STRING
|
||||||
%s ESCAPE
|
%s ESCAPE
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -245,7 +245,7 @@ json_current_body(struct clicon_json_yacc_arg *jy,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* top: json -> value is also possible */
|
/* 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");}
|
value : J_TRUE { json_current_body(_JY, "true");}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue