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 3, 2024
2 parents 8663021 + 7fb2659 commit 1a490d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions eo-parser/src/main/antlr4/org/eolang/parser/Phi.g4
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ attribute
: PHI
| RHO
| SIGMA
| VTX
| VERTEX
| LABEL
| alphaAttr
;
Expand Down Expand Up @@ -131,7 +131,8 @@ RHO : 'ρ'
SIGMA
: 'σ'
;
VTX : 'ν'
VERTEX
: 'ν'
;
DELTA
: 'Δ'
Expand Down
6 changes: 3 additions & 3 deletions eo-parser/src/main/java/org/eolang/parser/XePhiListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,13 @@ public void enterBinding(final PhiParser.BindingContext ctx) {
public void exitBinding(final PhiParser.BindingContext ctx) {
if (this.objs.size() > this.packages.size()) {
if (ctx.alphaBinding() != null) {
if (ctx.alphaBinding().attribute().VTX() != null) {
if (ctx.alphaBinding().attribute().VERTEX() != null) {
this.objects().remove();
} else {
this.objects().leave();
}
} else if (ctx.emptyBinding() != null) {
if (ctx.emptyBinding().attribute().VTX() != null) {
if (ctx.emptyBinding().attribute().VERTEX() != null) {
this.objects().remove();
} else {
this.objects().leave();
Expand Down Expand Up @@ -251,7 +251,7 @@ public void enterAttribute(final PhiParser.AttributeContext ctx) {
attr = "^";
} else if (ctx.SIGMA() != null) {
attr = "&";
} else if (ctx.VTX() != null) {
} else if (ctx.VERTEX() != null) {
attr = "<";
} else if (ctx.LABEL() != null) {
attr = ctx.LABEL().getText();
Expand Down

0 comments on commit 1a490d6

Please sign in to comment.