dakaizou

BasicTypesWithRef.ast

Mar 2nd, 2022
1,072
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 48.77 KB | None | 0 0
  1. {
  2.     "JCompilationUnit:1":
  3.     {
  4.         "source": "project3/BasicTypesWithRef.java",
  5.         "imports": ["java.lang.Double", "java.lang.Integer", "java.lang.Math", "java.lang.System"],
  6.         "JClassDeclaration:6":
  7.         {
  8.             "modifiers": ["public"],
  9.             "name": "BasicTypes",
  10.             "super": "java.lang.Object",
  11.             "JMethodDeclaration:7":
  12.             {
  13.                 "modifiers": ["private", "static"],
  14.                 "returnType": "void",
  15.                 "name": "compute",
  16.                 "parameters": [["a", "double"], ["b", "double"], ["c", "double"], ["n", "int"]],
  17.                 "JBlock:7":
  18.                 {
  19.                     "JStatementExpression:8":
  20.                     {
  21.                         "JMessageExpression:8":
  22.                         {
  23.                             "ambiguousPart": "null",
  24.                             "name": "quadratic",
  25.                             "Argument":
  26.                             {
  27.                                 "JVariable:8":
  28.                                 {
  29.                                     "name": "a",
  30.                                     "type": "null"
  31.                                 }
  32.                             },
  33.                             "Argument":
  34.                             {
  35.                                 "JVariable:8":
  36.                                 {
  37.                                     "name": "b",
  38.                                     "type": "null"
  39.                                 }
  40.                             },
  41.                             "Argument":
  42.                             {
  43.                                 "JVariable:8":
  44.                                 {
  45.                                     "name": "c",
  46.                                     "type": "null"
  47.                                 }
  48.                             }
  49.                         }
  50.                     },
  51.                     "JStatementExpression:9":
  52.                     {
  53.                         "JMessageExpression:9":
  54.                         {
  55.                             "ambiguousPart": "System.out",
  56.                             "name": "println",
  57.                             "Argument":
  58.                             {
  59.                                 "JBinaryExpression:9":
  60.                                 {
  61.                                     "operator": "+",
  62.                                     "type": "",
  63.                                     "Operand1":
  64.                                     {
  65.                                         "JBinaryExpression:9":
  66.                                         {
  67.                                             "operator": "+",
  68.                                             "type": "",
  69.                                             "Operand1":
  70.                                             {
  71.                                                 "JBinaryExpression:9":
  72.                                                 {
  73.                                                     "operator": "+",
  74.                                                     "type": "",
  75.                                                     "Operand1":
  76.                                                     {
  77.                                                         "JLiteralString:9":
  78.                                                         {
  79.                                                             "type": "",
  80.                                                             "value": "fibonacci("
  81.                                                         }
  82.                                                     },
  83.                                                     "Operand2":
  84.                                                     {
  85.                                                         "JVariable:9":
  86.                                                         {
  87.                                                             "name": "n",
  88.                                                             "type": "null"
  89.                                                         }
  90.                                                     }
  91.                                                 }
  92.                                             },
  93.                                             "Operand2":
  94.                                             {
  95.                                                 "JLiteralString:9":
  96.                                                 {
  97.                                                     "type": "",
  98.                                                     "value": ") = "
  99.                                                 }
  100.                                             }
  101.                                         }
  102.                                     },
  103.                                     "Operand2":
  104.                                     {
  105.                                         "JMessageExpression:9":
  106.                                         {
  107.                                             "ambiguousPart": "null",
  108.                                             "name": "fibonacci",
  109.                                             "Argument":
  110.                                             {
  111.                                                 "JVariable:9":
  112.                                                 {
  113.                                                     "name": "n",
  114.                                                     "type": "null"
  115.                                                 }
  116.                                             }
  117.                                         }
  118.                                     }
  119.                                 }
  120.                             }
  121.                         }
  122.                     }
  123.                 }
  124.             },
  125.             "JMethodDeclaration:12":
  126.             {
  127.                 "modifiers": ["private", "static"],
  128.                 "returnType": "void",
  129.                 "name": "quadratic",
  130.                 "parameters": [["a", "double"], ["b", "double"], ["c", "double"]],
  131.                 "JBlock:12":
  132.                 {
  133.                     "JVariableDeclaration:13":
  134.                     {
  135.                         "JVariableDeclarator:13":
  136.                         {
  137.                             "name": "discriminant",
  138.                             "type": "double",
  139.                             "Initializer":
  140.                             {
  141.                                 "JBinaryExpression:13":
  142.                                 {
  143.                                     "operator": "-",
  144.                                     "type": "",
  145.                                     "Operand1":
  146.                                     {
  147.                                         "JBinaryExpression:13":
  148.                                         {
  149.                                             "operator": "*",
  150.                                             "type": "",
  151.                                             "Operand1":
  152.                                             {
  153.                                                 "JVariable:13":
  154.                                                 {
  155.                                                     "name": "b",
  156.                                                     "type": "null"
  157.                                                 }
  158.                                             },
  159.                                             "Operand2":
  160.                                             {
  161.                                                 "JVariable:13":
  162.                                                 {
  163.                                                     "name": "b",
  164.                                                     "type": "null"
  165.                                                 }
  166.                                             }
  167.                                         }
  168.                                     },
  169.                                     "Operand2":
  170.                                     {
  171.                                         "JBinaryExpression:13":
  172.                                         {
  173.                                             "operator": "*",
  174.                                             "type": "",
  175.                                             "Operand1":
  176.                                             {
  177.                                                 "JBinaryExpression:13":
  178.                                                 {
  179.                                                     "operator": "*",
  180.                                                     "type": "",
  181.                                                     "Operand1":
  182.                                                     {
  183.                                                         "JLiteralDouble:13":
  184.                                                         {
  185.                                                             "type": "",
  186.                                                             "value": "4.0"
  187.                                                         }
  188.                                                     },
  189.                                                     "Operand2":
  190.                                                     {
  191.                                                         "JVariable:13":
  192.                                                         {
  193.                                                             "name": "a",
  194.                                                             "type": "null"
  195.                                                         }
  196.                                                     }
  197.                                                 }
  198.                                             },
  199.                                             "Operand2":
  200.                                             {
  201.                                                 "JVariable:13":
  202.                                                 {
  203.                                                     "name": "c",
  204.                                                     "type": "null"
  205.                                                 }
  206.                                             }
  207.                                         }
  208.                                     }
  209.                                 }
  210.                             }
  211.                         }
  212.                     },
  213.                     "JVariableDeclaration:14":
  214.                     {
  215.                         "JVariableDeclarator:14":
  216.                         {
  217.                             "name": "roots",
  218.                             "type": "double[]",
  219.                             "Initializer":
  220.                             {
  221.                                 "JNewArrayOp:14":
  222.                                 {
  223.                                     "type": "",
  224.                                     "Dimension":
  225.                                     {
  226.                                         "JLiteralInt:14":
  227.                                         {
  228.                                             "type": "",
  229.                                             "value": "2"
  230.                                         }
  231.                                     }
  232.                                 }
  233.                             }
  234.                         }
  235.                     },
  236.                     "JStatementExpression:15":
  237.                     {
  238.                         "JBinaryExpression:15":
  239.                         {
  240.                             "operator": "=",
  241.                             "type": "",
  242.                             "Operand1":
  243.                             {
  244.                                 "JArrayExpression:15":
  245.                                 {
  246.                                     "TheArray":
  247.                                     {
  248.                                         "JVariable:15":
  249.                                         {
  250.                                             "name": "roots",
  251.                                             "type": "null"
  252.                                         }
  253.                                     },
  254.                                     "TheIndex":
  255.                                     {
  256.                                         "JLiteralInt:15":
  257.                                         {
  258.                                             "type": "",
  259.                                             "value": "0"
  260.                                         }
  261.                                     }
  262.                                 }
  263.                             },
  264.                             "Operand2":
  265.                             {
  266.                                 "JBinaryExpression:15":
  267.                                 {
  268.                                     "operator": "/",
  269.                                     "type": "",
  270.                                     "Operand1":
  271.                                     {
  272.                                         "JBinaryExpression:15":
  273.                                         {
  274.                                             "operator": "+",
  275.                                             "type": "",
  276.                                             "Operand1":
  277.                                             {
  278.                                                 "JUnaryExpression:15":
  279.                                                 {
  280.                                                     "operator": "-",
  281.                                                     "type": "",
  282.                                                     "Operand":
  283.                                                     {
  284.                                                         "JVariable:15":
  285.                                                         {
  286.                                                             "name": "b",
  287.                                                             "type": "null"
  288.                                                         }
  289.                                                     }
  290.                                                 }
  291.                                             },
  292.                                             "Operand2":
  293.                                             {
  294.                                                 "JMessageExpression:15":
  295.                                                 {
  296.                                                     "ambiguousPart": "Math",
  297.                                                     "name": "sqrt",
  298.                                                     "Argument":
  299.                                                     {
  300.                                                         "JVariable:15":
  301.                                                         {
  302.                                                             "name": "discriminant",
  303.                                                             "type": "null"
  304.                                                         }
  305.                                                     }
  306.                                                 }
  307.                                             }
  308.                                         }
  309.                                     },
  310.                                     "Operand2":
  311.                                     {
  312.                                         "JBinaryExpression:15":
  313.                                         {
  314.                                             "operator": "*",
  315.                                             "type": "",
  316.                                             "Operand1":
  317.                                             {
  318.                                                 "JLiteralDouble:15":
  319.                                                 {
  320.                                                     "type": "",
  321.                                                     "value": "2.0"
  322.                                                 }
  323.                                             },
  324.                                             "Operand2":
  325.                                             {
  326.                                                 "JVariable:15":
  327.                                                 {
  328.                                                     "name": "a",
  329.                                                     "type": "null"
  330.                                                 }
  331.                                             }
  332.                                         }
  333.                                     }
  334.                                 }
  335.                             }
  336.                         }
  337.                     },
  338.                     "JStatementExpression:16":
  339.                     {
  340.                         "JBinaryExpression:16":
  341.                         {
  342.                             "operator": "=",
  343.                             "type": "",
  344.                             "Operand1":
  345.                             {
  346.                                 "JArrayExpression:16":
  347.                                 {
  348.                                     "TheArray":
  349.                                     {
  350.                                         "JVariable:16":
  351.                                         {
  352.                                             "name": "roots",
  353.                                             "type": "null"
  354.                                         }
  355.                                     },
  356.                                     "TheIndex":
  357.                                     {
  358.                                         "JLiteralInt:16":
  359.                                         {
  360.                                             "type": "",
  361.                                             "value": "1"
  362.                                         }
  363.                                     }
  364.                                 }
  365.                             },
  366.                             "Operand2":
  367.                             {
  368.                                 "JBinaryExpression:16":
  369.                                 {
  370.                                     "operator": "/",
  371.                                     "type": "",
  372.                                     "Operand1":
  373.                                     {
  374.                                         "JBinaryExpression:16":
  375.                                         {
  376.                                             "operator": "-",
  377.                                             "type": "",
  378.                                             "Operand1":
  379.                                             {
  380.                                                 "JUnaryExpression:16":
  381.                                                 {
  382.                                                     "operator": "-",
  383.                                                     "type": "",
  384.                                                     "Operand":
  385.                                                     {
  386.                                                         "JVariable:16":
  387.                                                         {
  388.                                                             "name": "b",
  389.                                                             "type": "null"
  390.                                                         }
  391.                                                     }
  392.                                                 }
  393.                                             },
  394.                                             "Operand2":
  395.                                             {
  396.                                                 "JMessageExpression:16":
  397.                                                 {
  398.                                                     "ambiguousPart": "Math",
  399.                                                     "name": "sqrt",
  400.                                                     "Argument":
  401.                                                     {
  402.                                                         "JVariable:16":
  403.                                                         {
  404.                                                             "name": "discriminant",
  405.                                                             "type": "null"
  406.                                                         }
  407.                                                     }
  408.                                                 }
  409.                                             }
  410.                                         }
  411.                                     },
  412.                                     "Operand2":
  413.                                     {
  414.                                         "JBinaryExpression:16":
  415.                                         {
  416.                                             "operator": "*",
  417.                                             "type": "",
  418.                                             "Operand1":
  419.                                             {
  420.                                                 "JLiteralDouble:16":
  421.                                                 {
  422.                                                     "type": "",
  423.                                                     "value": "2.0"
  424.                                                 }
  425.                                             },
  426.                                             "Operand2":
  427.                                             {
  428.                                                 "JVariable:16":
  429.                                                 {
  430.                                                     "name": "a",
  431.                                                     "type": "null"
  432.                                                 }
  433.                                             }
  434.                                         }
  435.                                     }
  436.                                 }
  437.                             }
  438.                         }
  439.                     },
  440.                     "JStatementExpression:17":
  441.                     {
  442.                         "JMessageExpression:17":
  443.                         {
  444.                             "ambiguousPart": "System.out",
  445.                             "name": "print",
  446.                             "Argument":
  447.                             {
  448.                                 "JBinaryExpression:17":
  449.                                 {
  450.                                     "operator": "+",
  451.                                     "type": "",
  452.                                     "Operand1":
  453.                                     {
  454.                                         "JBinaryExpression:17":
  455.                                         {
  456.                                             "operator": "+",
  457.                                             "type": "",
  458.                                             "Operand1":
  459.                                             {
  460.                                                 "JBinaryExpression:17":
  461.                                                 {
  462.                                                     "operator": "+",
  463.                                                     "type": "",
  464.                                                     "Operand1":
  465.                                                     {
  466.                                                         "JBinaryExpression:17":
  467.                                                         {
  468.                                                             "operator": "+",
  469.                                                             "type": "",
  470.                                                             "Operand1":
  471.                                                             {
  472.                                                                 "JBinaryExpression:17":
  473.                                                                 {
  474.                                                                     "operator": "+",
  475.                                                                     "type": "",
  476.                                                                     "Operand1":
  477.                                                                     {
  478.                                                                         "JBinaryExpression:17":
  479.                                                                         {
  480.                                                                             "operator": "+",
  481.                                                                             "type": "",
  482.                                                                             "Operand1":
  483.                                                                             {
  484.                                                                                 "JLiteralString:17":
  485.                                                                                 {
  486.                                                                                     "type": "",
  487.                                                                                     "value": "Roots of "
  488.                                                                                 }
  489.                                                                             },
  490.                                                                             "Operand2":
  491.                                                                             {
  492.                                                                                 "JVariable:17":
  493.                                                                                 {
  494.                                                                                     "name": "a",
  495.                                                                                     "type": "null"
  496.                                                                                 }
  497.                                                                             }
  498.                                                                         }
  499.                                                                     },
  500.                                                                     "Operand2":
  501.                                                                     {
  502.                                                                         "JLiteralString:17":
  503.                                                                         {
  504.                                                                             "type": "",
  505.                                                                             "value": "x^2 + "
  506.                                                                         }
  507.                                                                     }
  508.                                                                 }
  509.                                                             },
  510.                                                             "Operand2":
  511.                                                             {
  512.                                                                 "JVariable:17":
  513.                                                                 {
  514.                                                                     "name": "b",
  515.                                                                     "type": "null"
  516.                                                                 }
  517.                                                             }
  518.                                                         }
  519.                                                     },
  520.                                                     "Operand2":
  521.                                                     {
  522.                                                         "JLiteralString:17":
  523.                                                         {
  524.                                                             "type": "",
  525.                                                             "value": "x + "
  526.                                                         }
  527.                                                     }
  528.                                                 }
  529.                                             },
  530.                                             "Operand2":
  531.                                             {
  532.                                                 "JVariable:17":
  533.                                                 {
  534.                                                     "name": "c",
  535.                                                     "type": "null"
  536.                                                 }
  537.                                             }
  538.                                         }
  539.                                     },
  540.                                     "Operand2":
  541.                                     {
  542.                                         "JLiteralString:17":
  543.                                         {
  544.                                             "type": "",
  545.                                             "value": " = 0: "
  546.                                         }
  547.                                     }
  548.                                 }
  549.                             }
  550.                         }
  551.                     },
  552.                     "JStatementExpression:18":
  553.                     {
  554.                         "JMessageExpression:18":
  555.                         {
  556.                             "ambiguousPart": "System.out",
  557.                             "name": "print",
  558.                             "Argument":
  559.                             {
  560.                                 "JBinaryExpression:18":
  561.                                 {
  562.                                     "operator": "+",
  563.                                     "type": "",
  564.                                     "Operand1":
  565.                                     {
  566.                                         "JArrayExpression:18":
  567.                                         {
  568.                                             "TheArray":
  569.                                             {
  570.                                                 "JVariable:18":
  571.                                                 {
  572.                                                     "name": "roots",
  573.                                                     "type": "null"
  574.                                                 }
  575.                                             },
  576.                                             "TheIndex":
  577.                                             {
  578.                                                 "JLiteralInt:18":
  579.                                                 {
  580.                                                     "type": "",
  581.                                                     "value": "0"
  582.                                                 }
  583.                                             }
  584.                                         }
  585.                                     },
  586.                                     "Operand2":
  587.                                     {
  588.                                         "JLiteralString:18":
  589.                                         {
  590.                                             "type": "",
  591.                                             "value": ", "
  592.                                         }
  593.                                     }
  594.                                 }
  595.                             }
  596.                         }
  597.                     },
  598.                     "JStatementExpression:19":
  599.                     {
  600.                         "JMessageExpression:19":
  601.                         {
  602.                             "ambiguousPart": "System.out",
  603.                             "name": "println",
  604.                             "Argument":
  605.                             {
  606.                                 "JArrayExpression:19":
  607.                                 {
  608.                                     "TheArray":
  609.                                     {
  610.                                         "JVariable:19":
  611.                                         {
  612.                                             "name": "roots",
  613.                                             "type": "null"
  614.                                         }
  615.                                     },
  616.                                     "TheIndex":
  617.                                     {
  618.                                         "JLiteralInt:19":
  619.                                         {
  620.                                             "type": "",
  621.                                             "value": "1"
  622.                                         }
  623.                                     }
  624.                                 }
  625.                             }
  626.                         }
  627.                     }
  628.                 }
  629.             },
  630.             "JMethodDeclaration:22":
  631.             {
  632.                 "modifiers": ["private", "static"],
  633.                 "returnType": "long",
  634.                 "name": "fibonacci",
  635.                 "parameters": [["n", "int"]],
  636.                 "JBlock:22":
  637.                 {
  638.                     "JVariableDeclaration:23":
  639.                     {
  640.                         "JVariableDeclarator:23":
  641.                         {
  642.                             "name": "a",
  643.                             "type": "long",
  644.                             "Initializer":
  645.                             {
  646.                                 "JLiteralLong:23":
  647.                                 {
  648.                                     "type": "",
  649.                                     "value": "1L"
  650.                                 }
  651.                             }
  652.                         },
  653.                         "JVariableDeclarator:23":
  654.                         {
  655.                             "name": "b",
  656.                             "type": "long",
  657.                             "Initializer":
  658.                             {
  659.                                 "JLiteralLong:23":
  660.                                 {
  661.                                     "type": "",
  662.                                     "value": "1L"
  663.                                 }
  664.                             }
  665.                         }
  666.                     },
  667.                     "JVariableDeclaration:24":
  668.                     {
  669.                         "JVariableDeclarator:24":
  670.                         {
  671.                             "name": "i",
  672.                             "type": "int",
  673.                             "Initializer":
  674.                             {
  675.                                 "JLiteralInt:24":
  676.                                 {
  677.                                     "type": "",
  678.                                     "value": "3"
  679.                                 }
  680.                             }
  681.                         }
  682.                     },
  683.                     "JWhileStatement:25":
  684.                     {
  685.                         "Condition":
  686.                         {
  687.                             "JBinaryExpression:25":
  688.                             {
  689.                                 "operator": "<=",
  690.                                 "type": "",
  691.                                 "Operand1":
  692.                                 {
  693.                                     "JVariable:25":
  694.                                     {
  695.                                         "name": "i",
  696.                                         "type": "null"
  697.                                     }
  698.                                 },
  699.                                 "Operand2":
  700.                                 {
  701.                                     "JVariable:25":
  702.                                     {
  703.                                         "name": "n",
  704.                                         "type": "null"
  705.                                     }
  706.                                 }
  707.                             }
  708.                         },
  709.                         "Body":
  710.                         {
  711.                             "JBlock:25":
  712.                             {
  713.                                 "JVariableDeclaration:26":
  714.                                 {
  715.                                     "JVariableDeclarator:26":
  716.                                     {
  717.                                         "name": "temp",
  718.                                         "type": "long",
  719.                                         "Initializer":
  720.                                         {
  721.                                             "JVariable:26":
  722.                                             {
  723.                                                 "name": "a",
  724.                                                 "type": "null"
  725.                                             }
  726.                                         }
  727.                                     }
  728.                                 },
  729.                                 "JStatementExpression:27":
  730.                                 {
  731.                                     "JBinaryExpression:27":
  732.                                     {
  733.                                         "operator": "=",
  734.                                         "type": "",
  735.                                         "Operand1":
  736.                                         {
  737.                                             "JVariable:27":
  738.                                             {
  739.                                                 "name": "a",
  740.                                                 "type": "null"
  741.                                             }
  742.                                         },
  743.                                         "Operand2":
  744.                                         {
  745.                                             "JVariable:27":
  746.                                             {
  747.                                                 "name": "b",
  748.                                                 "type": "null"
  749.                                             }
  750.                                         }
  751.                                     }
  752.                                 },
  753.                                 "JStatementExpression:28":
  754.                                 {
  755.                                     "JBinaryExpression:28":
  756.                                     {
  757.                                         "operator": "+=",
  758.                                         "type": "",
  759.                                         "Operand1":
  760.                                         {
  761.                                             "JVariable:28":
  762.                                             {
  763.                                                 "name": "b",
  764.                                                 "type": "null"
  765.                                             }
  766.                                         },
  767.                                         "Operand2":
  768.                                         {
  769.                                             "JVariable:28":
  770.                                             {
  771.                                                 "name": "temp",
  772.                                                 "type": "null"
  773.                                             }
  774.                                         }
  775.                                     }
  776.                                 },
  777.                                 "JStatementExpression:29":
  778.                                 {
  779.                                     "JUnaryExpression:29":
  780.                                     {
  781.                                         "operator": "++ (pre)",
  782.                                         "type": "",
  783.                                         "Operand":
  784.                                         {
  785.                                             "JVariable:29":
  786.                                             {
  787.                                                 "name": "i",
  788.                                                 "type": "null"
  789.                                             }
  790.                                         }
  791.                                     }
  792.                                 }
  793.                             }
  794.                         }
  795.                     },
  796.                     "JReturnStatement:31":
  797.                     {
  798.                         "Expression":
  799.                         {
  800.                             "JVariable:31":
  801.                             {
  802.                                 "name": "b",
  803.                                 "type": "null"
  804.                             }
  805.                         }
  806.                     }
  807.                 }
  808.             },
  809.             "JMethodDeclaration:34":
  810.             {
  811.                 "modifiers": ["public", "static"],
  812.                 "returnType": "void",
  813.                 "name": "main",
  814.                 "parameters": [["args", "String[]"]],
  815.                 "JBlock:34":
  816.                 {
  817.                     "JVariableDeclaration:35":
  818.                     {
  819.                         "JVariableDeclarator:35":
  820.                         {
  821.                             "name": "a",
  822.                             "type": "double",
  823.                             "Initializer":
  824.                             {
  825.                                 "JMessageExpression:35":
  826.                                 {
  827.                                     "ambiguousPart": "Double",
  828.                                     "name": "parseDouble",
  829.                                     "Argument":
  830.                                     {
  831.                                         "JArrayExpression:35":
  832.                                         {
  833.                                             "TheArray":
  834.                                             {
  835.                                                 "JVariable:35":
  836.                                                 {
  837.                                                     "name": "args",
  838.                                                     "type": "null"
  839.                                                 }
  840.                                             },
  841.                                             "TheIndex":
  842.                                             {
  843.                                                 "JLiteralInt:35":
  844.                                                 {
  845.                                                     "type": "",
  846.                                                     "value": "0"
  847.                                                 }
  848.                                             }
  849.                                         }
  850.                                     }
  851.                                 }
  852.                             }
  853.                         }
  854.                     },
  855.                     "JVariableDeclaration:36":
  856.                     {
  857.                         "JVariableDeclarator:36":
  858.                         {
  859.                             "name": "b",
  860.                             "type": "double",
  861.                             "Initializer":
  862.                             {
  863.                                 "JMessageExpression:36":
  864.                                 {
  865.                                     "ambiguousPart": "Double",
  866.                                     "name": "parseDouble",
  867.                                     "Argument":
  868.                                     {
  869.                                         "JArrayExpression:36":
  870.                                         {
  871.                                             "TheArray":
  872.                                             {
  873.                                                 "JVariable:36":
  874.                                                 {
  875.                                                     "name": "args",
  876.                                                     "type": "null"
  877.                                                 }
  878.                                             },
  879.                                             "TheIndex":
  880.                                             {
  881.                                                 "JLiteralInt:36":
  882.                                                 {
  883.                                                     "type": "",
  884.                                                     "value": "1"
  885.                                                 }
  886.                                             }
  887.                                         }
  888.                                     }
  889.                                 }
  890.                             }
  891.                         }
  892.                     },
  893.                     "JVariableDeclaration:37":
  894.                     {
  895.                         "JVariableDeclarator:37":
  896.                         {
  897.                             "name": "c",
  898.                             "type": "double",
  899.                             "Initializer":
  900.                             {
  901.                                 "JMessageExpression:37":
  902.                                 {
  903.                                     "ambiguousPart": "Double",
  904.                                     "name": "parseDouble",
  905.                                     "Argument":
  906.                                     {
  907.                                         "JArrayExpression:37":
  908.                                         {
  909.                                             "TheArray":
  910.                                             {
  911.                                                 "JVariable:37":
  912.                                                 {
  913.                                                     "name": "args",
  914.                                                     "type": "null"
  915.                                                 }
  916.                                             },
  917.                                             "TheIndex":
  918.                                             {
  919.                                                 "JLiteralInt:37":
  920.                                                 {
  921.                                                     "type": "",
  922.                                                     "value": "2"
  923.                                                 }
  924.                                             }
  925.                                         }
  926.                                     }
  927.                                 }
  928.                             }
  929.                         }
  930.                     },
  931.                     "JVariableDeclaration:38":
  932.                     {
  933.                         "JVariableDeclarator:38":
  934.                         {
  935.                             "name": "n",
  936.                             "type": "int",
  937.                             "Initializer":
  938.                             {
  939.                                 "JMessageExpression:38":
  940.                                 {
  941.                                     "ambiguousPart": "Integer",
  942.                                     "name": "parseInt",
  943.                                     "Argument":
  944.                                     {
  945.                                         "JArrayExpression:38":
  946.                                         {
  947.                                             "TheArray":
  948.                                             {
  949.                                                 "JVariable:38":
  950.                                                 {
  951.                                                     "name": "args",
  952.                                                     "type": "null"
  953.                                                 }
  954.                                             },
  955.                                             "TheIndex":
  956.                                             {
  957.                                                 "JLiteralInt:38":
  958.                                                 {
  959.                                                     "type": "",
  960.                                                     "value": "3"
  961.                                                 }
  962.                                             }
  963.                                         }
  964.                                     }
  965.                                 }
  966.                             }
  967.                         }
  968.                     },
  969.                     "JStatementExpression:39":
  970.                     {
  971.                         "JMessageExpression:39":
  972.                         {
  973.                             "ambiguousPart": "null",
  974.                             "name": "compute",
  975.                             "Argument":
  976.                             {
  977.                                 "JVariable:39":
  978.                                 {
  979.                                     "name": "a",
  980.                                     "type": "null"
  981.                                 }
  982.                             },
  983.                             "Argument":
  984.                             {
  985.                                 "JVariable:39":
  986.                                 {
  987.                                     "name": "b",
  988.                                     "type": "null"
  989.                                 }
  990.                             },
  991.                             "Argument":
  992.                             {
  993.                                 "JVariable:39":
  994.                                 {
  995.                                     "name": "c",
  996.                                     "type": "null"
  997.                                 }
  998.                             },
  999.                             "Argument":
  1000.                             {
  1001.                                 "JVariable:39":
  1002.                                 {
  1003.                                     "name": "n",
  1004.                                     "type": "null"
  1005.                                 }
  1006.                             }
  1007.                         }
  1008.                     }
  1009.                 }
  1010.             }
  1011.         }
  1012.     }
  1013. }
  1014.  
Advertisement
Add Comment
Please, Sign In to add comment