Skip to content

Commit

Permalink
Format and document the grammar (squash of #2901)
Browse files Browse the repository at this point in the history
  • Loading branch information
MysterAitch committed Nov 15, 2020
1 parent 23d5f23 commit 8da8a31
Show file tree
Hide file tree
Showing 3 changed files with 3,787 additions and 1,212 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public static int spaceTokenKind() {
/**
* Category of a token, a little more detailed than
* <a href="https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.5">The JLS</a>.
* FIXME: It appears that {@code ...} {@code ELLIPSIS} and {@code ::} {@code DOUBLECOLON} are (wrongly) listed in the "operators" section, rather than "separators"
*/
public static JavaToken.Category getCategory(int kind) {
switch (kind) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ TokenRange recover(int recoveryTokenType, ParseException p) {
}

/**
* Quickly create a new NodeList
* Quickly create a new, empty, NodeList
*/
<T extends Node> NodeList<T> emptyList() {
<T extends Node> NodeList<T> emptyNodeList() {
return new NodeList<>();
}

Expand Down
Loading

0 comments on commit 8da8a31

Please sign in to comment.