Gentrex - generic tree expressions
What's gentrex?
Gentrex (GENeric TRee EXpression) is a domain-specific, declarative
mini-language designed to
- match an expression to a tree from a given node
- optionally perform searches on a tree or subtree, match the expression for different combinations of nodes
- be a small library
- be a language library
- be portable (C89, no external dependency)
- be flexible (the tree is implemented in the host application)
Gentrex is licensed under the LGPL.
Gentrex is simlar to xpath , but:
- uses a different syntax that is closer to regex and C
- has a much smaller syntax
- is no way coupled with xml (but can be used on xml)
- has some similar core concepts
Gentrex is also similar to tregex,
but:
- uses a different syntax that is closer to regex and C
- features a smaller syntax
- is implemented in C, not in java.
- has some similar core concepts
Getting started
Documentation
- expression tutorial and examples
- a somewhat more formal description of the language
- TODO: programmer's doc (how to embed gentrex in your project) [check example_app.c for now]
- design concepts: requirements
Contact
email to gentrex (at) igor2.repo.hu