Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
urbic committed May 8, 2024
1 parent eeeb37a commit 483c05e
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions src/main/jj/coneforest.psylla/coneforest/psylla/Parser.jj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
options
{
JDK_VERSION="17";
// BUILD_TOKEN_MANAGER=false;
}

PARSER_BEGIN(Parser)
Expand Down Expand Up @@ -100,8 +99,7 @@ TOKEN:
<#REAL_UNSIGNED:
(
<INTEGRAL_DEC_UNSIGNED> ("." (<DIGIT>)*)?
|
"." <INTEGRAL_DEC_UNSIGNED>
| "." <INTEGRAL_DEC_UNSIGNED>
)
(<EXPONENT>)?
>
Expand Down Expand Up @@ -158,30 +156,18 @@ TOKEN:
"\\"
(
["0", "a", "n", "t", "f", "\\", "e", "r", "v", "\n"]
|
"u" <HEXDIGIT> <HEXDIGIT> <HEXDIGIT> <HEXDIGIT>
|
"x{" (<HEXDIGIT>)+ "}"
|
"N{" (["A"-"Z", "0"-"9", " ", "-"])+ "}"
|
"c" ["\u0000"-"\u00FF"]
| "u" <HEXDIGIT> <HEXDIGIT> <HEXDIGIT> <HEXDIGIT>
| "x{" (<HEXDIGIT>)+ "}"
| "N{" (["A"-"Z", "0"-"9", " ", "-"])+ "}"
| "c" ["\u0000"-"\u00FF"]
)
>
}

TOKEN:
{
<REGEXP:
"~"
(
<STRING_SPECIAL>
|
<REGEXP_SPECIAL>
|
~["~", "\\"]
)*
"~"
"~" (<STRING_SPECIAL> | <REGEXP_SPECIAL> | ~["~", "\\"])* "~"
>
}

Expand All @@ -200,8 +186,7 @@ TOKEN:
<#COMMAND_UNQUALIFIED:
(<LETTER> | <NAME_SPECIAL_CHAR>)
(<LETTER> | <NAME_SPECIAL_CHAR> | <DIGIT>)*
|
["[", "]", "(", ")", "<", ">", "=", "?"]
| ["[", "]", "(", ")", "<", ">", "=", "?"]
>
}

Expand Down

0 comments on commit 483c05e

Please sign in to comment.