Implemented loop iterators
This commit is contained in:
parent
144810c6c8
commit
ac03657307
17 changed files with 147 additions and 35 deletions
|
@ -34,6 +34,7 @@ const (
|
|||
LogicalOr // ||
|
||||
Define // :=
|
||||
Period // .
|
||||
Range // ..
|
||||
Call // x()
|
||||
Array // [x]
|
||||
Separator // ,
|
||||
|
|
|
@ -36,6 +36,8 @@ func operator(tokens List, buffer []byte, i Position) (List, Position) {
|
|||
kind = AddAssign
|
||||
case ".":
|
||||
kind = Period
|
||||
case "..":
|
||||
kind = Range
|
||||
case ":=":
|
||||
kind = Define
|
||||
case "<":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue