Java8 and C# grammar: Tree structure of a variable that is initialized with a literal during declaration #3998
Labels
csharp
target:java
Grammars for Java target, https://github.com/antlr/antlr4/blob/master/doc/java-target.md
Hi,
I have a question regarding the tree that's generated for the following Java8 code:
The tree for the initialisation in the declaration looks like:
Why is the initialization so convoluted? Why are
inclusive*
andshift*
nodes involved here when the RHS is a simple literal? Do I have to go through all those nodes to access the literal? I see that this happens for other languages like C# as well.The text was updated successfully, but these errors were encountered: