Skip to content

Commit

Permalink
extracted the parser(s) to its own artifact org.logicng.logicng-parse…
Browse files Browse the repository at this point in the history
…r-j8/11 and removed ANTLR as compile dependency (ANTLR and a copy of the parsers is still used in the tests)
  • Loading branch information
SHildebrandt committed Apr 28, 2024
1 parent bb7e1ac commit e17a890
Show file tree
Hide file tree
Showing 71 changed files with 1,161 additions and 2,055 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ LogicNG uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.5.0] - 2024-xx-xx

### Removed (Potentially Breaking Change!)

- All parser classes from `org.logicng.io.parsers` (including in particular the two main parsers `LogicNGPropositionalParsers` and `LogicNGPseudoBooleanParser`) as well as the class `org.logicng.io.readers.FormulaReader` were moved to the new artifacts `org.logicng.logicng-parser-j8` (or `org.logicng.logicng-parser-j11` for Java 11). So there LogicNG now consists of two artifacts:
- All the core functionality of LogicNG except for the parser is located in the "old" `org.logicng:logicng` artifact. This artifact does *not* depend on ANTLR anymore (which was the reason for splitting the library). For the time being this library will be based on Java 8, but nothing should prevent its usage in higher Java versions.
- The parser functionality is located in `org.logicng:logicng-parser-j8` (for Java 8 and ANTLR 4.9.3) and `org.logicng:logicng-parser-j11` (for Java 11 and the most recent ANTLR version). The version of this library will stay in sync with the core library.

### Added

- Added unsafe methods `term` and `dnf` to the `FormulaFactory` to create a term (conjunction of literals) or a DNF (c.f. with method `FormulaFactory#clause` and `FormulaFactory#cnf`). Both methods do not perform reduction operations and therefore are faster. Only use these methods if you are sure the input is free of complementary and redundant operands.
Expand Down
329 changes: 0 additions & 329 deletions doc/codestyle/intellij/LogicNG.xml

This file was deleted.

Loading

0 comments on commit e17a890

Please sign in to comment.