Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Type Filename of INPUT FILE (ends with .pc)
- Filename (Example: test.pc): test.pc
- --- result of parsed code ---
- MATH EXPRESSIONS
- ----------------
- 3 raised to 3 (Function): 81.0
- RECURSIVE FUNCTION - The factorial of 5.0 is: 120.0
- ARRAY TEST - array consists of 3 elements
- element 1: 7.0
- element 2: 8.0
- element 3: 9.0
- element 1 + 2 = 15.0
- element 2 * 3 = 72.0
- WHILE CONSTRUCT: AS LONG AS (<expr>) DO BEGIN <code> END
- 50.0
- DO-WHILE LOOP CONSTRUCT: PERFORM BEGIN <code> END AS LONG AS (<expr>)
- 4.0
- 7.0
- 10.0
- 13.0
- 16.0
- 19.0
- 22.0
- 25.0
- 28.0
- 31.0
- 34.0
- 37.0
- 40.0
- 43.0
- 46.0
- 49.0
- 52.0
- 55.0
- 58.0
- 61.0
- 64.0
- 67.0
- 70.0
- 73.0
- 76.0
- FOR LOOP CONSTRUCT: WHERE <counter start> UNTIL <number of iterations> DO BEGIN <code> END
- 1.0
- 2.0
- 3.0
- 4.0
- 5.0
- 6.0
- 7.0
- 8.0
- 9.0
- 10.0
- 11.0
- 12.0
- 13.0
- 14.0
- 15.0
- END OF PROGRAM
Advertisement
Add Comment
Please, Sign In to add comment