Skip to content

Commit

Permalink
Handle open-ended intervals.
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne M. Gagnon <egagnon@j-meg.com>
  • Loading branch information
egagnon committed Aug 18, 2014
1 parent 3496120 commit c9fb8a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/sablecc/sablecc/semantics/Type.java
Expand Up @@ -362,6 +362,10 @@ public String toString() {
return name + "^1.." + this.maxMultiplicity;
}

if (this.maxMultiplicity == null) {
return name + "^" + this.minMultiplicity + "...";
}

return name + "^" + this.minMultiplicity + ".." + this.maxMultiplicity;
}

Expand Down

0 comments on commit c9fb8a9

Please sign in to comment.