overhaul in type checking. used to check using TokenTypes. now its checked using Tokens
various bugfixes
test logs
Declaration Type Mismatch: expected 'chan[11]' but got 'chan[10]'
____________________________
| Expected type defined here
8 | d-chan[11] = a~
| ^^^^^^^^
| __________|
| | Tried to assign a value that evaluates to type: 'chan[10]'
8..n | | d-chan[11] = a
| | ^
| |_________________|
____________________________
Declaration Type Mismatch: expected 'chan[10]' but got 'chan[9]'
_______________________________
| Expected type defined here
9 | e-chan[10] = a{0}~
| ^^^^^^^^
| __________|
| | Tried to assign a value that evaluates to type: 'chan[9]'
9..n | | e-chan[10] = a{0}
| | ^^^^
| |_________________|
_______________________________
Declaration Type Mismatch: expected 'chan[10]' but got 'chan[8]'
____________________________________
| Expected type defined here
10 | f-chan[10] = a{0}{0}~
| ^^^^^^^^
| __________|
| | Tried to assign a value that evaluates to type: 'chan[8]'
10..n | | f-chan[10] = a{0}{0}
| | ^^^^^^^
| |_________________|
____________________________________
Declaration Type Mismatch: expected 'chan[10]' but got 'chan[7]'
_______________________________________
| Expected type defined here
11 | g-chan[10] = a{0}{0}{0}~
| ^^^^^^^^
| __________|
| | Tried to assign a value that evaluates to type: 'chan[7]'
11..n | | g-chan[10] = a{0}{0}{0}
| | ^^^^^^^^^^
| |_________________|
_______________________________________
array overhaul
chan[3]
elements must all bechan[2]
;chan[100]
elements must all bechan[99]
; etcappend()
andprepend()
expect the unit type of the array typechan[2].append()
expectschan[1]
;chan[100].append()
expectschan[99]
; etcextend()
andprextend()
expect the array typechan[2].append()
expectschan[2]
;chan[100].append()
expectschan[100]
; etcetc
TokenType
s. now its checked usingToken
stest logs