Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > code;;
- val it : string =
- "
- void MyMethod(int x, float y)
- if(
- y) {x/*wat*/ = y;lol=rofl} if(false) p=q //test
- elseif(if2) // Hi
- y =
- x /*lol*/
- sillyIndentTests = true
- else {
- OMIGAWD = lol
- }
- x = hoylmoly
- "
- > test p code;;
- Success: Method
- ("void","MyMethod",[Argument ("int","x"); Argument ("float","y")],
- [IfThen
- (Value (VariableReference "y"),
- [Expression (Assignment ("x",Value (VariableReference "y")));
- Expression (Assignment ("lol",Value (VariableReference "rofl")))]);
- IfThenElse
- (Value (BoolLiteral false),
- [Expression (Assignment ("p",Value (VariableReference "q")))],
- [IfThenElse
- (Value (VariableReference "if2"),
- [Expression (Assignment ("y",Value (VariableReference "x")));
- Expression
- (Assignment ("sillyIndentTests",Value (BoolLiteral true)))],
- [Expression (Assignment ("OMIGAWD",Value (VariableReference "lol")))])]);
- Expression (Assignment ("x",Value (VariableReference "hoylmoly")))])
- Comment found at (Ln: 7, Col: 10) for 7 characters: /*lol*/
- Comment found at (Ln: 5, Col: 17) for 5 characters: // Hi
- Comment found at (Ln: 4, Col: 47) for 6 characters: //test
- Comment found at (Ln: 4, Col: 11) for 7 characters: /*wat*/
- val it : unit = ()
- >
Add Comment
Please, Sign In to add comment