Languages Features Creators Calendar CSV Resources Blog About Pricing Add Language
GitHub icon


Trex - Grammar language

< >

Trex, aka Tree Regular Expressions for XML, is a grammar language created in 2001 by James Clark.

#2071on PLDB 22Years Old 0Books

TREX is a new language for validating XML documents. A TREX pattern specifies a pattern for the structure and content of an XML document. A TREX pattern thus identifies a class of XML documents consisting of those documents that match the pattern. A TREX pattern is itself an XML document.

Example from the web:
<element name="addressBook"> <zeroOrMore> <element name="card"> <element name="name"> <anyString/> </element> <element name="email"> <anyString/> </element> </element> </zeroOrMore> </element>
mtml.html 路 trex.html 路 z2.html

View source

- Build the next great programming language Search v2023 Day 205 Docs Acknowledgements Traffic Traffic Today Mirrors GitHub