Comments (8)
Fair. Fixed.
from stringfuzz.
Fix to Error 1 pushed to "bandit" branch. Pull it down and let me know.
Errors 2 and 3 seem to be parser issues.
from stringfuzz.
Error 2 is because "<" is not a string operator so it is not in the bandit's supported ops. Added a warning and ignoring those. Pushed to "bandit" branch.
from stringfuzz.
I'm confused, the command line interface says the following are operators: '=', '>', '<', '>=', '<=', 'Concat', 'Contains', 'At', 'Length', 'IndexOf', 'IndexOf2', 'PrefixOf', 'SuffixOf', 'Replace', 'ReInter', 'ReUnion', 'ReRange', 'RePlus', 'ReStar', 'ReConcat', 'Str2Re', 'InRegex', 'ToInt', 'FromInt', 'Substring'
from stringfuzz.
@FedericoAureliano heyoo, what do you think of merging banditfuzz into trunk, so you don't have to work on a branch? :)
Also, are there ways I can make it easier to write, say, only plugins (e.g. importing all files in a plugins
folder, or looking at pip-installed packages)? That way you don't have to work on all of stringfuzz, and just have a repo with your plugin.
from stringfuzz.
Woah software engineering sensei teach me. I'm very keen for a way to write plugins that's independent (also for another project I'm working on). What's the best way to do it?
from stringfuzz.
@FedericoAureliano Heh, I'm far from a sensei. I'm barely passable!
The methods I'm considering:
- Pass a
--plugin path/to/plugin.py
flag, andimport
the file at the path. - Pass a
--plugin pip_package_name
flag, andimport
the specified package by name. - Automatically run
pip freeze
in Stringfuzz, andimport
all things that start with a fixed string (e.g.stringfuzz-plugin-.*
). - Automatically
import
everything inside thegenerators
ortransformers
folders.
And then every such package would have to conform to an API, like its argument-parsing, its methods, etc.
What do you think of these? Do you have any ideas?
from stringfuzz.
I like 1/2 a lot. Handling the subparsers might be tricky though. I guess the plugin will have to define this stuff somewhere too. Maybe having the user provide a configuration file?
from stringfuzz.
Related Issues (20)
- stringfuzzx translate should not modify re.range arguments HOT 4
- stringfuzz should generate negative literals using unary negation
- stringfuzzx strips out satisfiability info HOT 2
- stringfuzzg should always specify the logic
- stringfuzzg should specify satisfiability status, if known
- stringfuzzg random-ast works
- bin/stringmerge works
- stringfuzz can parse n-ary concats
- stringfuzz should be able to parse sorts properly
- stringfuzzx graft shouldn't swap with str.to.re args
- stringfuzzg regex: NameError: name 'ReConcatNode' is not defined HOT 1
- semantics change: re.all / re.allchar
- stringfuzzg should support norn as a new language
- Issue with double-quote character
- There should be an Add/Remove transformer
- Bandit Issue #1
- Bandit Issue #2
- Bandit Issue #3 HOT 1
- ./bin/stringfuzzg not work without installing HOT 1
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 stringfuzz.