vincenttoups / shadchen-el Goto Github PK
View Code? Open in Web Editor NEWshadchen is an emacs lisp pattern matching library
License: GNU Lesser General Public License v3.0
shadchen is an emacs lisp pattern matching library
License: GNU Lesser General Public License v3.0
Apparently when performing a match against an integer pattern, it does an (= ...) test without verifying that the match value is numeric.
(match "2019-02-27"
((concat year "-" month "-" day)
(list year month day))) ;; => ("02" "2019" "27") ✘
(match "2019-02-27"
((concat year "-" (concat month "-" day))
(list year month day))) ;; => ("2019" "02" "27") ✔︎
(match (list 0 1)
((list b b) 'match)
((list a b) 'diff))
This returns 'match
. Ideally shadchen would throw an error on repeated symbols to avoid confusion.
Would you like me to handle marmalade uploads for now?
I had fun using this for a matcher for the stuff produced by org-elements... it's pretty tricky because there aren't enough examples.
One particular problem I had was how I could match against something deep in a list, org-elements has stuff like this:
(headline (:raw-value "Jacintha Love" :begin 1 :end 198 :pre-blank 0 :hiddenp nil :contents-begin 17) ...)
How to match just :contents-begin
for example?
There were some stupid bugs in 1.1 (to do with lexical-binding being pulled put out) so it would be good to have those two things in there as a release.
You can release really easily with marmalade through your Emacs with the marmalade-upload package, which is available on marmalade (obviously).
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.