-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from allegro/if-else-validation
Fixed message on if with missing else branch, extended error messages
- Loading branch information
Showing
6 changed files
with
98 additions
and
59 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/main/java/pl/allegro/tech/opel/LabeledStringMatcher.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package pl.allegro.tech.opel; | ||
|
||
import org.parboiled.Rule; | ||
import org.parboiled.matchers.StringMatcher; | ||
|
||
class LabeledStringMatcher extends StringMatcher { | ||
public LabeledStringMatcher(Rule[] matchers, char[] characters) { | ||
super(matchers, characters); | ||
} | ||
|
||
@Override | ||
public String getLabel() { | ||
return String.valueOf(characters); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters