xpath parser scan strings instead of characters
This commit is contained in:
parent
a68174897d
commit
ed62c33a79
5 changed files with 10 additions and 12 deletions
|
|
@ -146,11 +146,11 @@ real ({digit}+[.]{digit}*)|({digit}*[.]{digit}+)
|
|||
<TOKEN>. { fprintf(stderr,"LEXICAL ERROR\n"); return -1; }
|
||||
|
||||
<QLITERAL>\" { BEGIN(TOKEN); return QUOTE; }
|
||||
<QLITERAL>. { clixon_xpath_parselval.string = strdup(yytext);
|
||||
return CHAR;}
|
||||
<QLITERAL>[^"]+ { clixon_xpath_parselval.string = strdup(yytext);
|
||||
return CHARS;}
|
||||
<ALITERAL>\' { BEGIN(TOKEN); return APOST; }
|
||||
<ALITERAL>. { clixon_xpath_parselval.string = strdup(yytext);
|
||||
return CHAR;}
|
||||
<ALITERAL>[^']+ { clixon_xpath_parselval.string = strdup(yytext);
|
||||
return CHARS;}
|
||||
|
||||
%%
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue