aboutsummaryrefslogtreecommitdiffstats
path: root/examples/arithmetic.bdl
blob: 5e102e9da002e334a018a0b3593c271287d84441 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
;
; Basic arithmetic operations
;

; Addition
(+ 10 100)
(+ 1 -2 3 4)

; Substraction
(- 100 75)
(- 10 20 30)

; Multiplication
(* 10 7)
(* -1 66)

; Division
(/ 45 5)
(/ 10 5 2)

; Nesting operations.
(* 20 (+ 100 (- 50 30) (/ 300 3)) 10)