<html><head></head><body><div dir="auto">We can simply change the lexer state externally from the parser as soon as the hex( prefix is seen, and provide the result directly from the lexer. <br><br>This way, we can allow all the syntaxes like hex(de-ad-be-ef), hex(de:ad:be:ef), hex(de ad be ef) or even hex(dea:db-eef) just by ignoring nonalnum characters altogether.<br><br>Here I'd strongly prefer nicer user experience over setting the syntax to best fit our needs. I don't think any user really cares about the lexer/parser difference.<br><br>Maria</div><br><br><div class="gmail_quote"><div dir="auto">On 12 June 2023 15:07:16 CEST, Ondrej Zajicek <santiago@crfreenet.org> wrote:</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail"><div dir="auto">On Mon, Jun 12, 2023 at 02:40:42PM +0200, Maria Matejka via Bird-users wrote:<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><div dir="auto">Hello!<br><br>I think using hex() and base64() with adding these two tokens to the<br>"kw_sym:" non-terminal. This way, no current config should break.<br></div></blockquote><div dir="auto"><br>I would prefer hex:XX:YY:... to hex(XX:YY:...) to emphasize it is lexer<br>and not parser thing and avoid special cases.<br><br></div></pre></blockquote></div><div dir="auto"><div class='k9mail-signature'>-- <br>Maria Matejka (she/her) | BIRD Team Leader | CZ.NIC, z.s.p.o.</div></div></body></html>