Hi,

On 17.02.19 14:08, Peng Yu wrote:

> [[:alpha:]_][[:alnum:]_]=[[:digit:]+]  { /* parse yytext to get the
> name and value, then do the assignment */ }

The main reason you are using a lexer is to avoid writing code for
manual parsing. The lexer can already tell you where the equals sign is
and how long the identifier and value are, but only if they are separate
tokens.

   Simon

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to