File: tests

package info (click to toggle)
libpegex-perl 0.75-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 908 kB
  • sloc: perl: 3,288; makefile: 43; sh: 2
file content (20 lines) | stat: -rw-r--r-- 248 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Run:
#   perl calculator1.pl tests
#   perl calculator2.pl tests

2
-2--4
2 * 4
2 * 4 + 6
2 + 4 * 6 + 1
2 * 3 + 4 - 5 * 6
2 + (4 + 6) * 8
(((2 + (((4 + (6))) * (8)))))
2 ^ 3 ^ 2
2 ^ (3 ^ 2)
(2 ^ 3) ^ 2
2 * 2^3^2
(2^5)^2
2^5^2
0*1/(2+3)-4^5
2/3+1