Skip to content

Commit 9a21f81

Browse files
committed
updated
1 parent 2deaaab commit 9a21f81

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ It supports
2222
The parser is a pure Java library without any 3-th side dependency, it is published im the Maven central and can be injected into project just by adding:
2323
```xml
2424
<dependency>
25-
<groupId>com.igormaznitsa</groupId>
26-
<artifactId>java-prolog-parser</artifactId>
27-
<version>2.0.2</version>
25+
<groupId>com.igormaznitsa</groupId>
26+
<artifactId>java-prolog-parser</artifactId>
27+
<version>2.0.2</version>
2828
</dependency>
2929
```
3030

3131
# How to use?
3232
Parser implements stream which sequentially reads prolog terms provided by reader. By default, PrologParser is abstract class but there is pre-defined implementation GenericPrologParser for common cases.
3333
```java
34-
Reader reader = new StringReader("hello(world). some({1,2,3}). power(X,Y,Z) :- Z is X ** Y.");
35-
ParserContext context = DefaultParserContext.of(ParserContext.FLAG_CURLY_BRACKETS, Op.SWI);
36-
PrologParser parser = new GenericPrologParser(reader, context);
37-
parser.forEach(System.out::println);
34+
Reader reader = new StringReader("hello(world). some({1,2,3}). power(X,Y,Z) :- Z is X ** Y.");
35+
ParserContext context = DefaultParserContext.of(ParserContext.FLAG_CURLY_BRACKETS, Op.SWI);
36+
PrologParser parser = new GenericPrologParser(reader, context);
37+
parser.forEach(System.out::println);
3838
```
3939

4040
# Supported Prolog terms

0 commit comments

Comments
 (0)