Comments (9)
Have a look at https://comby.dev/docs/configuration#toml-format. Going to close this issue since this will be the general file configuration format for now. Open any other suggestions/desires in a new issue based on this currently supported configuration format.
from comby.
I'm adding a way to read patterns using a TOML file in #189. Documentation to follow.
from comby.
Sorry for the delay in response, I was ill and in bed all last week :(
Specifying generate.py instead of -f generate.py didn't work and complained about missing match and rewrite templates.
Ah, right. That's because some confusion happens with -templates
and the anonymous arguments (-f
exists to be used with templates). This issue is related to #161. When fixed, you should be able to specify just generate.py
without the -f
.
In general, if you have an idea to make specifying multiple templates easier (or think that the .comby
format you mentioned above will improve things), then I'll keep this open to track a possible solution.
I did't find @@ self-explanatory or intuitive enough
I feel the same.
from comby.
Basically it can simplify applying of subset of https://github.com/comby-tools/sample-catalog
from comby.
Yeah, agree this is a bit painful. Part of the intention is to separate the inputs so that escaping/metasyntax isn't needed to delineate/separate the match and rewrite templates. That said, agree it should be possible to specify these in a single file somehow.
spatch
format is another way of achieving this, and also allows shorter templates by deduplicating common parts. See related issue #149 and http://coccinelle.lip6.fr/sp.php. What do you think of that format?
from comby.
@rvantonder maybe that's not that important when it is possible to specify a path to a template dir. The problem was to discover the right syntax.
comby -templates catalogue/Python2 -d . -f generate.py
Specifying generate.py
instead of -f generate.py
didn't work and complained about missing match and rewrite templates.
For spatch
I did't find @@
self-explanatory or intuitive enough. I've heard about coccinelle
before, and still without sufficient background terms like kinds of collateral evolutions
escape my understanding, so I don't know how it is supposed to apply those patches. Maybe they should not invert the meaning of green and red colors at http://coccinelle.lip6.fr/sp.php
from comby.
No pressure. Feeling well should always be a top priority. ,)
As for the workflow improvement, reading template
dir from a .zip
archive can be more convenient for sharing the rules. The https://comby.live/ can also provide an option to import/export them. Even in uncompressed .zip
from comby.
I like the zip idea!
from comby.
An example would be nice.
from comby.
Related Issues (20)
- builds for arm64 HOT 2
- Only first match is located HOT 1
- Keep getting Exception: (Sys_error "xxxx.swift: Read-only file system
- A match expression followed by a rewrite expression using a named whitespace matcher produces unexpected output
- Difficulties connecting to comby.dev HOT 4
- Support glibc 2.28 HOT 1
- Comby support for OCaml? HOT 3
- Comby Image not supporting configuration files(.TOML) HOT 1
- [non-issue] What's Omega matcher engine? HOT 1
- Unicode character in match template appears to break matching/behaves as wildcard HOT 1
- Case of comby not being compatible with .csproj-file
- Comby doesn't work correctly with a single quote in html HOT 1
- Typescript/Javascript expressions embedded in template strings not recognized
- comby.live is missing version information HOT 2
- A
- A
- Allow specification of `matcher` for patterns in TOML config file HOT 1
- The get-comby.netlify.app script installs an old version of Comby HOT 1
- Ability to drop/modify suffix? HOT 5
- C language is including ';' in expression syntax HOT 2
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 comby.