Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [INFO] Parser: IfStatementParser Input: "if(a>b){int a = 0; int b = a + b - (3*b)/4.5f;}"
- [INFO] Res:
- "if(a>b){int a = 0; int b = a + b - (3*b)/4.5f;}" [IF-STATEMENT, 0-47, 47 chars, 7 parts]
- "if" [0-2, 2 chars]
- "(" [2-3, 1 chars]
- "a>b" [CONDITION, 3-6, 3 chars, 3 parts]
- "a" [NAME, 3-4, 1 chars]
- ">" [COMPARATOR, 4-5, 1 chars]
- "b" [NAME, 5-6, 1 chars]
- ")" [6-7, 1 chars]
- "{" [7-8, 1 chars]
- "int a = 0; int b = a + b - (3*b)/4.5f;" [CODEBLOCKS, 8-46, 38 chars, 2 parts]
- "int a = 0;" [DECL/INIT, 8-18, 10 chars, 5 parts]
- "int" [TYPE, 8-11, 3 chars]
- "a" [NAME, 12-13, 1 chars]
- "=" [14-15, 1 chars]
- "0" [INT, 16-17, 1 chars]
- ";" [17-18, 1 chars]
- "int b = a + b - (3*b)/4.5f;" [DECL/INIT, 19-46, 27 chars, 5 parts]
- "int" [TYPE, 19-22, 3 chars]
- "b" [NAME, 23-24, 1 chars]
- "=" [25-26, 1 chars]
- "a + b - (3*b)/4.5f" [OPERATION, 27-45, 18 chars, 3 parts]
- "a" [NAME, 27-28, 1 chars]
- "+" [MODE, 29-30, 1 chars]
- "b - (3*b)/4.5f" [OPERATION, 31-45, 14 chars, 3 parts]
- "b" [NAME, 31-32, 1 chars]
- "-" [MODE, 33-34, 1 chars]
- "(3*b)/4.5f" [OPERATION, 35-45, 10 chars, 3 parts]
- "(3*b)" [ENCLOSED, 35-40, 5 chars, 3 parts]
- "(" [35-36, 1 chars]
- "3*b" [OPERATION, 36-39, 3 chars, 3 parts]
- "3" [INT, 36-37, 1 chars]
- "*" [MODE, 37-38, 1 chars]
- "b" [NAME, 38-39, 1 chars]
- ")" [39-40, 1 chars]
- "/" [MODE, 40-41, 1 chars]
- "4.5f" [FLOAT, 41-45, 4 chars, 4 parts]
- "4" [INT, 41-42, 1 chars]
- "." [42-43, 1 chars]
- "5" [INT, 43-44, 1 chars]
- "f" [44-45, 1 chars]
- ";" [45-46, 1 chars]
- "}" [46-47, 1 chars]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement