<div dir="ltr">Right, although if you read the leex.erl source code it seems that it could. <div><div>Whatever. I'll stick to UUIDs as strings.</div><div><br></div><div>Thank you all.</div><div><br></div><div>Massimo</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 12, 2019 at 5:27 PM Håkan Huss <<a href="mailto:huss01@gmail.com">huss01@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den lör 12 okt. 2019 14:39Massimo Cesaro <<a href="mailto:massimo.cesaro@gmail.com" target="_blank">massimo.cesaro@gmail.com</a>> skrev:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 11, 2019 at 6:30 PM Stanislaw Klekot <<a href="mailto:erlang.org@jarowit.net" rel="noreferrer" target="_blank">erlang.org@jarowit.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Oct 11, 2019 at 04:22:32PM +0200, Massimo Cesaro wrote:<br>
> Today I was trying to define a UUID data type in the DSL language using the<br>
> following definition in the leex .xlr file:<br>
> <br>
> UUID =<br>
> [0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}<br>
> <br>
> and the corresponding rule:<br>
> {UUID}       : {token, {uuid, TokenChars, TokenLine}}.<br>
<br>
Are you sure that {8} is not treated as a macro name?<br></blockquote><div> </div><div>Not really, I'm looking into leex source.</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Looking at the Leex docs for the supported regexes it seems that the<span style="font-family:sans-serif"> {n} construct isn't supported.</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">/Håkan</span></div></div>
</blockquote></div>