| 1 | (* 63 levels of parentheses, and 63 calls nested, in one expression. |
| 2 | The least an implementation must accept (report section 10, Limits). *) |
| 3 | module LimitParens; |
| 4 | import Out; |
| 5 | proc id(x: INT): INT; |
| 6 | begin return x; end; |
| 7 | var x: INT; |
| 8 | begin |
| 9 | x := (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((1))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))); |
| 10 | Out.int(x); Out.char('\n'); |
| 11 | x := id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(id(2))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))); |
| 12 | Out.int(x); Out.char('\n'); |
| 13 | end LimitParens. |