Comments (5)
Absolutely right. The question ist: should
(1) the parser be able to parse A + B = 1 or should
(2) the toString() be 1 * A + 1 * B = 1.
(2) is very easy to implement, (1) would be more elegant to read. Any preferences?
from logicng.
Well yes indeed. Exactly my thinking.
Which probably already answers your question. I would prefere Option 1, but as a work around 2 is also fine. Would you agree?
from logicng.
OK. I went for the elegant solution :) This will be part of Release 1.1. You can test the implementation in the release_1.1
branch. Please give feedback, if everything works as expected.
from logicng.
Will do. Thanks!
from logicng.
I have yet to find any problems related to the new parser. Thanks again.
from logicng.
Related Issues (20)
- [Question] How to reduce syntactic size of a formula HOT 6
- Performance of QMC HOT 5
- Parallel computing HOT 4
- Changing variable value after parsing formula HOT 5
- Is there xor? HOT 7
- Is it safe to use a formula multiple times? HOT 1
- Memory requirements HOT 10
- BDD Kernel & Factory usage HOT 3
- Add JavaDoc to "phase" HOT 6
- What is the best way to represent a `BooleanFunction` in LogicNG?
- Improve discoverability of features HOT 5
- [bug] Error when exporting single-clause cnf formula to dimacs file HOT 2
- Caused by: java.lang.ClassCastException: java.util.HashMap$Node cannot be cast to java.util.HashMap$TreeNode HOT 3
- Is it possible to have saveState() and loadState() in MaxSATSolver? HOT 1
- What are valid variable names (for parsing)? HOT 2
- How to create BDD ? HOT 3
- Quine-McCluskey Solver Inefficient for Formulas with Many Input Variables HOT 2
- Bump to ANTLR runtime version 4.10.1 HOT 7
- Upgrade antlr dependencies version 4.13.1 HOT 3
- Getting @CNF_RESERVED_XXX instead of literals for big model HOT 4
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 logicng.