forked from nitlang/nitutorial
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbool_expr.nit
More file actions
Latest commit
42 lines (35 loc) · 593 Bytes
/
Copy pathbool_expr.nit
File metadata and controls
42 lines (35 loc) · 593 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Simple Boolean expressions
modulebool_expr
# A boolean expression
abstractclassBoolExpr
end
# A boolean binary operation
abstractclassBoolBinOp
superBoolExpr
# The left operand
varleft: BoolExpr
# The right operand
varright: BoolExpr
end
# A boolean conjunction
classBoolAnd
superBoolBinOp
end
# A boolean disjunction
classBoolOr
superBoolBinOp
end
# A boolean negation
classBoolNot
superBoolExpr
# the negated boolean
varexpr: BoolExpr
end
# A true boolean value
classBoolTrue
superBoolExpr
end
# A false boolean value
classBoolFalse
superBoolExpr
end