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 [email protected]:


> 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
>
_______________________________________________
Ur mailing list
[email protected]
http://www.impredicative.com/cgi-bin/mailman/listinfo/ur

Reply via email to