Arabica: implementing XPath expressions

Added some more XPath expression classes for multiply, divide and modulus. At the moment, I’m testing all these things by manipulating them directly. Now I’ve got a little handful of classes, the next time I get a few minutes I hope to start hooking them up to the parser.

At the moment, I’ve got the parser on the one hand and these expression classes on the other. The parser chews through a XPath and, assuming it’s syntactically correct, produces an abstract syntax tree (ast) modelling that XPath. The expression classes actually do stuff.

All I need to do now is join them up by walking the ast and creating the corresponding objects as you go. This should be pretty straightforward, as the ast nodes have a unique integer type id. By using a lookup table of type ids to factory functions, everything should more or less fall out. Then, as I add new classes to fill out the functionality I can just add them into the table.


Tagged code, arabica, xml, and c++
« prev
July Linkfarm
next »
August Linkfarm


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired



Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired