<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">massimo.cesaro@gmail.com</a>> skrev:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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" target="_blank" rel="noreferrer">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>