Nov 19
Why would you want to upgrade to Spirit2 from “Classic” Spirit?
Here’s a teaser:
Spirit 1.x [ straight pattern matching (no actions) ]
real 0m0.359s
user 0m0.332s
sys 0m0.012sSpirit 1.x [ parse tree generation ]
real 0m9.305s
user 0m9.209s
sys 0m0.076sSpirit 2.1 [ AST with variant nodes generation ]
real 0m0.459s
user 0m0.432s
sys 0m0.028s
The numbers look good. I hope to see comparison with Yard C++ parser and more test cases with sophisticated grammar, say XML or C, JS and testing on large files (say 10MB).
I am a common one for making such things. If you can give me a yard parser that works and is optimized and uses a decent amount of features, then I can make an equivalent Spirit2 version.
AFAIK, Yard does not have attributes and is only a transduction parser like classic Spirit. Correct me if I’m wrong.
Ah, that greatly makes its use vastly limited then… matching…