summary refs log tree commit diff stats
path: root/compiler/dfa.nim
Commit message (Expand)AuthorAgeFilesLines
* DFA: code cleanups and some support for consuming operationsAndreas Rumpf2017-12-271-109/+9
* DFA attempt to capture the essence of linear typesAndreas Rumpf2017-12-231-2/+21
* DFA works for simple examplesAndreas Rumpf2017-12-211-9/+17
* next steps in giving Nim a decent DFA infrastructureAraq2017-12-181-5/+83
* Fixed koch warning when installing Nim. (#6898)Gerke Max Preussner2017-12-121-3/+3
* deprecated unary '<'Andreas Rumpf2017-10-291-2/+2
* initial version of the new untested destructor passAndreas Rumpf2017-10-121-4/+4
* preparations for a new AST transformation pass with the aim of giving us reli...Andreas Rumpf2017-10-091-22/+40
* disable the new DFAAndreas Rumpf2017-10-091-24/+33
* work in progress: a dataflow architecture for NimAndreas Rumpf2017-10-091-0/+412
/tests/vm/tarrayboundeval.nim?h=devel&id=678f3d7f5bf7998816431f38604c0b9e0f27c90a'>678f3d7f5 ^
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

              

     












                                            
    



                                                 
 
                                          






                                                            
discard """
  output: '''7
8 8
-2'''
"""

#bug 1063

const
  KeyMax = 227
  myconst = int((KeyMax + 31) / 32)

type
  FU = array[int((KeyMax + 31) / 32), cuint]

echo FU.high

type
  PKeyboard* = ptr object
  TKeyboardState* = object
    display*: pointer
    internal: array[int((KeyMax + 31)/32), cuint]

echo myconst, " ", int((KeyMax + 31) / 32)

#bug 1304 or something:

const constArray: array [-3..2, int] = [-3, -2, -1, 0, 1, 2]

echo constArray[-2]