Skip to content

Commit

Permalink
Merge branch '__rultor'
Browse files Browse the repository at this point in the history
  • Loading branch information
rultor committed Mar 15, 2024
2 parents cb5d61b + a4315ac commit 3a4f98c
Show file tree
Hide file tree
Showing 9 changed files with 5,922 additions and 4 deletions.
1,023 changes: 1,023 additions & 0 deletions eo-maven-plugin/src/test/resources/org/eolang/maven/phi/bool-tests.yaml

Large diffs are not rendered by default.

2,599 changes: 2,599 additions & 0 deletions eo-maven-plugin/src/test/resources/org/eolang/maven/print/xmir/bool-tests.xmir

Large diffs are not rendered by default.

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions eo-parser/src/main/antlr4/org/eolang/parser/Eo.g4
Original file line number Diff line number Diff line change
Expand Up @@ -288,16 +288,20 @@ vapplicationArgHapplicationUnbound
;

// Vertical anonym object as argument of vertical application
// todo - replace with formation?
vapplicationArgVanonymUnbound
: commentMandatory formation
| formationNameless
: formationNamedOrNameless
;

formationNameless
: attributes innersOrEol
;

// Formation with or without name
formationNamedOrNameless
: commentMandatory formation
| formationNameless
;

// Bound vertical anonym abstract object as argument of vertical application argument
// Ends on the next line
vapplicationArgVanonymBound
Expand Down Expand Up @@ -422,11 +426,13 @@ vmethodOptional
// 1. vertical method
// 2. vertical application
// 3. just an object reference
// 4. vertical formation
// Ends on the next line
vmethodHead
: vmethodHead methodTailOptional vmethodHeadApplicationTail
| vmethodHeadVapplication
| justNamed EOL
| formationNamedOrNameless
;

methodTailOptional
Expand Down
10 changes: 10 additions & 0 deletions eo-parser/src/main/java/org/eolang/parser/XeEoListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,16 @@ public void exitFormationNameless(final EoParser.FormationNamelessContext ctx) {
// Nothing here
}

@Override
public void enterFormationNamedOrNameless(final EoParser.FormationNamedOrNamelessContext ctx) {
// Nothing here
}

@Override
public void exitFormationNamedOrNameless(final EoParser.FormationNamedOrNamelessContext ctx) {
// Nothing here
}

@Override
public void enterVapplicationArgVanonymBound(
final EoParser.VapplicationArgVanonymBoundContext ctx
Expand Down
Loading

0 comments on commit 3a4f98c

Please sign in to comment.