added 2 necessary node kinds
This commit is contained in:
parent
022ff2e86e
commit
46f92c31aa
3 changed files with 8 additions and 2 deletions
|
|
@ -198,6 +198,9 @@ type
|
||||||
nkMutableTy, # ``mutable T``
|
nkMutableTy, # ``mutable T``
|
||||||
nkDistinctTy, # distinct type
|
nkDistinctTy, # distinct type
|
||||||
nkProcTy, # proc type
|
nkProcTy, # proc type
|
||||||
|
nkIteratorTy, # iterator type
|
||||||
|
nkSharedTy, # 'shared T'
|
||||||
|
# we use 'nkPostFix' for the 'not nil' addition
|
||||||
nkEnumTy, # enum body
|
nkEnumTy, # enum body
|
||||||
nkEnumFieldDef, # `ident = expr` in an enumeration
|
nkEnumFieldDef, # `ident = expr` in an enumeration
|
||||||
nkArgList, # argument list
|
nkArgList, # argument list
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,10 @@ type
|
||||||
nnkRefTy, nnkPtrTy, nnkVarTy,
|
nnkRefTy, nnkPtrTy, nnkVarTy,
|
||||||
nnkConstTy, nnkMutableTy,
|
nnkConstTy, nnkMutableTy,
|
||||||
nnkDistinctTy,
|
nnkDistinctTy,
|
||||||
nnkProcTy, nnkEnumTy,
|
nnkProcTy,
|
||||||
|
nnkIteratorTy, # iterator type
|
||||||
|
nnkSharedTy, # 'shared T'
|
||||||
|
nnkEnumTy,
|
||||||
nnkEnumFieldDef,
|
nnkEnumFieldDef,
|
||||||
nnkArglist, nnkPattern
|
nnkArglist, nnkPattern
|
||||||
nnkReturnToken
|
nnkReturnToken
|
||||||
|
|
|
||||||
2
todo.txt
2
todo.txt
|
|
@ -2,10 +2,10 @@ version 0.9.2
|
||||||
=============
|
=============
|
||||||
|
|
||||||
- test&finish first class iterators:
|
- test&finish first class iterators:
|
||||||
|
* tyIterator: implement nkIteratorTy, nkSharedTy
|
||||||
* allow return in first class iterators
|
* allow return in first class iterators
|
||||||
* nested iterators
|
* nested iterators
|
||||||
* arglist as a type?
|
* arglist as a type?
|
||||||
* tyIterator?
|
|
||||||
|
|
||||||
- fix closure bug finally
|
- fix closure bug finally
|
||||||
- overloading based on ASTs: 'constraint' should not be in PType but for the
|
- overloading based on ASTs: 'constraint' should not be in PType but for the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue