Hi,

On 22.02.19 15:00, [email protected] wrote:

> [a-zA-Z]+ { printf("%s is not a verb", yytext); }
> 
> .|\n { ECHO; /* normal default anyway */ }

> Now my question is when i enter one of the verbs it's working normaly
> like expected, but when i enter for example 234someword i also get the
> messsage %s is not a verb but i've no rule saying that, i've only
> [a-zA-Z]+ to catch this situation, why does he also react on word that
> begin with a number ??

The "234" is printed by the "ECHO;" rule, then "someword is not a verb"
is printed by the printf rule, and they appear together on the output
stream.

   Simon

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to