Comments (6)
I can see why one would want access to the lexer, but you sure you want access to the parser? The parse tree is built in a very particular way so the evaluator can do its job, and if goxpath's evaluator isn't behaving the way you want, building another evaluator around goxpath's parse tree probably won't do you any good.
Also, can you explain where you're seeing some performance issues in goxpath?
from goxpath.
The performance issues are because I don't evaluate it on XML exactly, so most of the functions in findUtils are really expensive. On the other hand, I can take some shortcuts that aren't available in XML.
The parse tree is built in a very particular way so the evaluator can do its job, and if goxpath's evaluator isn't behaving the way you want, building another evaluator around goxpath's parse tree probably won't do you any good.
Until now I haven't faced anything like this, benchmarks are looking quite good. It sounds like there is something specific you have in mind wrt any design decisions in the evaluator though, which I might not have hit yet.
from goxpath.
Can you point to which parts in the lexer/parser packages you need? It's probably not as simple as just getting rid of the internal part; a lot of methods and fields are private because they weren't really designed with a public API in mind.
from goxpath.
For now, I'm using pretty much everything the current evaluator is using, only in a different way. You can have a look at the changes i've made at https://github.com/aristanetworks/goxpath/commits/master
from goxpath.
Your changes look good. Pulling them down.
from goxpath.
excellent, thanks a lot!
from goxpath.
Related Issues (17)
- Retrieve node name and namespace HOT 3
- last() / index after attribute restriction query doesn't parse HOT 4
- Could it support non-strict html parsing? HOT 2
- ExecNode bug? HOT 3
- Parser doesn't like expressions like `/foo/[current()/bar=ip]` HOT 1
- does this lib support html? HOT 2
- Parser returns wrong tree structure for expressions that begin with functions HOT 1
- Select root node HOT 2
- Preserve self-closing tags as is
- Delete tree node HOT 1
- XML-tagged structs operation HOT 11
- Locate and modify HOT 3
- goxpath needs a rewrite HOT 3
- panic: Malformed XML file HOT 8
- When the hell did encoding/xml handle HTML? HOT 1
- XSLT current() HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goxpath.