1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

test float

This commit is contained in:
Ayman Nadeem 2018-07-24 15:29:54 -04:00
parent a905e30e47
commit c5e5f0b97f
6 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,7 @@
public class Point {
void dinosaur() {
Float x = 10.0;
Float y = 20.0;
System.out.print(x + y);
}
}

View File

@ -0,0 +1,30 @@
(Statements
(Class
(AccessibilityModifier)
(Identifier)
(Statements
(Method
(Void)
(Empty)
(Identifier)
(Statements
(Statements
(Assignment
(Variable
(Identifier)
(Identifier))
(Float)))
{+(Statements
{+(Assignment
{+(Variable
{+(Identifier)+}
{+(Identifier)+})+}
{+(Float)+})+})+}
{+(Call
{+(MemberAccess
{+(MemberAccess
{+(Identifier)+})+})+}
{+(Plus
{+(Identifier)+}
{+(Identifier)+})+}
{+(Empty)+})+})))))

View File

@ -0,0 +1,30 @@
(Statements
(Class
(AccessibilityModifier)
(Identifier)
(Statements
(Method
(Void)
(Empty)
(Identifier)
(Statements
(Statements
(Assignment
(Variable
(Identifier)
(Identifier))
(Float)))
{-(Statements
{-(Assignment
{-(Variable
{-(Identifier)-}
{-(Identifier)-})-}
{-(Float)-})-})-}
{-(Call
{-(MemberAccess
{-(MemberAccess
{-(Identifier)-})-})-}
{-(Plus
{-(Identifier)-}
{-(Identifier)-})-}
{-(Empty)-})-})))))

View File

@ -0,0 +1,16 @@
(Statements
(Class
(AccessibilityModifier)
(Identifier)
(Statements
(Method
(Void)
(Empty)
(Identifier)
(Statements
(Statements
(Assignment
(Variable
(Identifier)
(Identifier))
(Float))))))))

View File

@ -0,0 +1,30 @@
(Statements
(Class
(AccessibilityModifier)
(Identifier)
(Statements
(Method
(Void)
(Empty)
(Identifier)
(Statements
(Statements
(Assignment
(Variable
(Identifier)
(Identifier))
(Float)))
(Statements
(Assignment
(Variable
(Identifier)
(Identifier))
(Float)))
(Call
(MemberAccess
(MemberAccess
(Identifier)))
(Plus
(Identifier)
(Identifier))
(Empty)))))))