Skip to content

Commit

Permalink
Merge branch '__rultor'
Browse files Browse the repository at this point in the history
  • Loading branch information
rultor committed Dec 4, 2023
2 parents 4a65192 + e3ffb94 commit 98c0d20
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions eo-parser/src/main/java/org/eolang/parser/XeListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@
"PMD.ExcessiveClassLength"
})
public final class XeListener implements ProgramListener, Iterable<Directive> {
/**
* Info about xmir.
*/
private static final String INFO = String.join(
"",
"This is XMIR - a dialect of XML, which is used to present a parsed EO program. ",
"For more information please visit https://news.eolang.org/2022-11-25-xmir-guide.html"
);

/**
* The name of it.
Expand Down Expand Up @@ -102,6 +110,7 @@ public void enterProgram(final ProgramParser.ProgramContext ctx) {
DateTimeFormatter.ISO_INSTANT
)
)
.comment(XeListener.INFO)
.add("listing").set(XeListener.sourceText(ctx)).up()
.add("errors").up()
.add("sheets").up()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
xsls: []
tests:
- /program/comment()[1]
eo: |
[] > main

0 comments on commit 98c0d20

Please sign in to comment.