Skip to content

Commit

Permalink
feat(objectionary#3332): format puzzles and javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Dec 19, 2024
1 parent 9247faa commit 50c2b71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eo-parser/src/main/java/org/eolang/parser/ParsingErrors.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ public void syntaxError(
// @checkstyle MethodBodyCommentsCheck (20 lines)
// @todo #3332:30min Add more specific error messages.
// Currently we write just "error: no viable alternative at input" for all errors.
// It's better to use {@link #recognizer} to get more specific error messages.
// It's better to use 'Recognizer<?, ?> recognizer' parameter of the current method
// to retrieve more specific error messages.
if (error instanceof NoViableAltException) {
final Token token = (Token) symbol;
this.errors.add(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@

/**
* Underlined message.
* <p>
* For example, if you have a message "Problem is here" and you want to underline
* the word "is", you can create an instance of this class with the following
* parameters: origin="Problem is here", from=8, length=2.
* </p>
* <p>
* The result will be:
* {@code
* Problem is here
* ^^
* }
* </p>
* @since 0.50
* @todo #3332:30min Add more decorators for the error message.
* For example, {@link ParsingErrors} currently contains logic related to the message formatting.
Expand Down

0 comments on commit 50c2b71

Please sign in to comment.