Nigel Tao
|
f7095028f0
|
Check struct declarations.
|
2017-05-13 15:36:37 +10:00 |
|
Nigel Tao
|
e87ff7163b
|
Change the "for" keyword to "while".
The semantics is closer to C's "while". Also, "while" is simpler, which
means simpler interactions with assertions, pre- and post-conditions.
|
2017-05-13 14:31:52 +10:00 |
|
Nigel Tao
|
de28a715b3
|
Fix error's line numbers for nested statements.
|
2017-05-13 12:03:33 +10:00 |
|
Nigel Tao
|
57598bee41
|
Check the if condition has boolean type.
|
2017-05-13 11:33:31 +10:00 |
|
Nigel Tao
|
da9612667e
|
Refactor the checkAssign code.
|
2017-05-13 11:30:40 +10:00 |
|
Nigel Tao
|
33af5598cc
|
Check "x op= y".
|
2017-05-13 11:26:46 +10:00 |
|
Nigel Tao
|
3d34f6abf1
|
Check the assert condition has boolean type.
|
2017-05-13 10:48:10 +10:00 |
|
Nigel Tao
|
7367a382b2
|
Check "i < j" when i's type refines j's type.
|
2017-05-13 10:40:48 +10:00 |
|
Nigel Tao
|
87dcd9ed55
|
Check the for-loop condition has boolean type.
|
2017-05-13 10:23:21 +10:00 |
|
Nigel Tao
|
a5a5509a44
|
Check "x = 1 + x".
|
2017-05-13 10:03:30 +10:00 |
|
Nigel Tao
|
bd5f222fb6
|
Check "x = 1 + 2".
|
2017-05-12 18:50:20 +10:00 |
|
Nigel Tao
|
8dd151bf74
|
Set a unary op expr's const value.
|
2017-05-12 16:29:32 +10:00 |
|
Nigel Tao
|
0e59b05432
|
Check "b = not true".
|
2017-05-12 16:03:35 +10:00 |
|
Nigel Tao
|
5d51c6c42c
|
Check "y = -y".
|
2017-05-12 15:32:49 +10:00 |
|
Nigel Tao
|
188f0e9e3b
|
Check "x = 0".
|
2017-05-12 15:18:38 +10:00 |
|
Nigel Tao
|
ede8786f4b
|
Reject "x = y" if their types don't match.
|
2017-05-12 11:53:27 +10:00 |
|
Nigel Tao
|
9366e063d1
|
Pull type checking code into its own file.
|
2017-05-12 11:06:25 +10:00 |
|