lmondada / portmatching Goto Github PK
View Code? Open in Web Editor NEWPattern Matching on Portgraphs
Home Page: https://crates.io/crates/portmatching
License: MIT License
Pattern Matching on Portgraphs
Home Page: https://crates.io/crates/portmatching
License: MIT License
from @acl-cqc:
I'm also wondering whether the similarity between StringPosition and StringIndexKey (i.e. that they have the same representation, even though they are distinct types) is something that could be enforced by the framework, rather than in the application to strings. (E.g. it could provide + use two types SubjectPosition and PatternPosition and use the same specified for the kind of Data.) Of course this falls over if the Key/Value=Position types are different, which I think would mean if you wanted other/more-flexible kinds of pattern rather than just being in the same form as the data with atoms/characters/node-labels replaced by variables.
I note Position/Value == Key for both implementations of IndexingScheme so far (StringIndexingScheme and TestIndexingScheme), tho.
Patterns without constraints but a fixed length are not handled properly at the moment. Such patterns can be built by using distinct variables at every pattern position, eg $a$b$c
.
See test_dummy_len_2_string_matching
in the src/string.rs
file.
Having the crate as a dependency causes portmatching::HashMap
to be the suggested as a (frequently first) option for importing HashMap
by rust-analyzer. What's even worse is that this is not the same hashmap in std::collections
.
Line 63 in cddf72c
I'd suggest removing the public export, or renaming it so users don't mix it up with the std
one.
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.