Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Literal boolean #10037

Closed
wants to merge 5 commits into from
Closed

Literal boolean #10037

wants to merge 5 commits into from

Conversation

Rahulkhinchi03
Copy link
Contributor

fixes #9463
Image

Java Code:


public class MyClass {
  public boolean x;
}

AST Format of Java Code:


CLASS_DEF -> CLASS_DEF [1:0]
|--MODIFIERS -> MODIFIERS [1:0]
|   `--LITERAL_PUBLIC -> public [1:0]
|--LITERAL_CLASS -> class [1:7]
|--IDENT -> MyClass [1:13]
`--OBJBLOCK -> OBJBLOCK [1:21]
    |--LCURLY -> { [1:21]
    |--VARIABLE_DEF -> VARIABLE_DEF [2:2]
    |   |--MODIFIERS -> MODIFIERS [2:2]
    |   |   `--LITERAL_PUBLIC -> public [2:2]
    |   |--TYPE -> TYPE [2:9]
    |   |   `--LITERAL_BOOLEAN -> boolean [2:9]
    |   |--IDENT -> x [2:17]
    |   `--SEMI -> ; [2:18]
    `--RCURLY -> } [3:0]

Expected update for JavaDoc:


     --VARIABLE_DEF -> VARIABLE_DEF 
         --MODIFIERS -> MODIFIERS 
            `--LITERAL_PUBLIC -> public 
         --TYPE -> TYPE 
            `--LITERAL_BOOLEAN -> boolean 
         --IDENT -> x 
        `--SEMI -> ; 
    `--RCURLY -> } 

@Rahulkhinchi03 Rahulkhinchi03 deleted the LITERAL_BOOLEAN branch May 24, 2021 17:29
@Rahulkhinchi03 Rahulkhinchi03 restored the LITERAL_BOOLEAN branch May 24, 2021 17:31
@Rahulkhinchi03 Rahulkhinchi03 deleted the LITERAL_BOOLEAN branch May 25, 2021 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update example of AST for TokenTypes.LITERAL_BOOLEAN
1 participant