kuhumcst / cuphic Goto Github PK
View Code? Open in Web Editor NEWTransform or scrape Hiccup with a declarative DSL.
Transform or scrape Hiccup with a declarative DSL.
Subtle errors such as the one fixed in a9d6a59 keep popping up way too often. Fixing the errors are hard since the code has become fairly complex.
I think this complexity that came about as a result of having to support fragment patterns. Suddenly, the algorithm went from being very simple to grasp, to being extremely complex with multiple routes to follow. However, fragments are quite essential to the workings of the algorithm.
Perhaps I need to look at incorporating more third party libs for doing the matching. Core.unify? Or perhaps one of the other data transformation libs as a base?
So far, most of the functionality has been focused on finding and replacing (transforming), but finding should also be available stand-alone (needed for e.g. finding metadata in TEI-XML documents produced by Dorte).
The crucial thing here is to make it a single-pass thing (just like transformations) to preserve performance. It makes sense to make the API take 1 or more patterns, possibly using named args and then simply return a map from keyword->list of each found pattern (plus metadata most likely) within the hiccup.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.