Make parsing of strings more flexible.

- Make use of building expressions.
This commit is contained in:
Dave Davenport 2016-12-19 17:48:20 +01:00
parent 7fa4c164ab
commit be3ce75f5d

View file

@ -19,11 +19,11 @@ GQueue *queue = NULL;
yylloc->first_line = yylloc->last_line; yylloc->first_column = yylloc->last_column;\
}
%}
WHITESPACE [ \t]
WORD [_\-a-zA-Z0-9]+
STRING [ \t_\-a-zA-Z0-9]+
HEX [0-9a-fA-F]
NUMBER [0-9]
WHITESPACE [[:space:]]
WORD [[:alnum:]-]+
STRING [[:print:]]+
HEX [[:xdigit:]]
NUMBER [[:digit:]]
%x PROPERTIES
%x NAMESTR