[Ur] Regular expressions DSEL?

fold at tuta.io fold at tuta.io
Sun Feb 19 23:47:48 EST 2017


Maybe just define another attribute in basis.urs?
It would be much interesting to define a DSEL though. I have not seen any attempts to create a DSEL for regular expressions.


20. Feb 2017 16:28 by artyom.shalkhakov at gmail.com:


> Hello all,
> 'm doing form validation stuff, following examples on MDN. [1]
>
> It seems like Ur/Web doesn't handle regular expressions?
> I guess it should not be too diffcult to define a DSEL in Ur/Web (just AST constructors and a few trusted functions: e.g. [compile : AST -> regexp], where [regexp] is an abstract type, or maybe just a string :-)) and have it work at least in the browser.
> Could somebody point me in the right direction here?
> -- 
> Cheers,
> Artyom Shalkhakov
>
> [1] > https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.impredicative.com/pipermail/ur/attachments/20170220/ea236cb1/attachment.html>


More information about the Ur mailing list