Guest User

Untitled

a guest
Dec 9th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 1.32 KB | None | 0 0
  1. > code;;
  2. val it : string =
  3.   "
  4. void MyMethod(int x, float y)
  5.    if(
  6.     y) {x/*wat*/ = y;lol=rofl} if(false) p=q //test
  7.    elseif(if2) // Hi
  8.      y =
  9.       x /*lol*/
  10.      sillyIndentTests = true
  11.    else {
  12. OMIGAWD = lol
  13.        }
  14.  x = hoylmoly
  15. "
  16. > test p code;;
  17. Success: Method
  18.   ("void","MyMethod",[Argument ("int","x"); Argument ("float","y")],
  19.    [IfThen
  20.       (Value (VariableReference "y"),
  21.        [Expression (Assignment ("x",Value (VariableReference "y")));
  22.         Expression (Assignment ("lol",Value (VariableReference "rofl")))]);
  23.     IfThenElse
  24.       (Value (BoolLiteral false),
  25.        [Expression (Assignment ("p",Value (VariableReference "q")))],
  26.        [IfThenElse
  27.           (Value (VariableReference "if2"),
  28.            [Expression (Assignment ("y",Value (VariableReference "x")));
  29.             Expression
  30.               (Assignment ("sillyIndentTests",Value (BoolLiteral true)))],
  31.            [Expression (Assignment ("OMIGAWD",Value (VariableReference "lol")))])]);
  32.     Expression (Assignment ("x",Value (VariableReference "hoylmoly")))])
  33. Comment found at (Ln: 7, Col: 10) for 7 characters: /*lol*/
  34. Comment found at (Ln: 5, Col: 17) for 5 characters: // Hi
  35. Comment found at (Ln: 4, Col: 47) for 6 characters: //test
  36. Comment found at (Ln: 4, Col: 11) for 7 characters: /*wat*/
  37. val it : unit = ()
  38. >
Add Comment
Please, Sign In to add comment