new operator '111123' that returns the content of the current context or the context of an iterator

This commit is contained in:
2024-04-27 06:12:30 +02:00
parent 894b1884eb
commit 10eec286fa
3 changed files with 55 additions and 3 deletions
+4 -2
View File
@@ -242,6 +242,8 @@ func (self *scanner) fetchNextToken() (tk *Token) {
if next, _ := self.peek(); next == '(' {
tk = self.moveOn(SymDollarRound, ch, next)
tk.source += ")"
} else if next == '$' {
tk = self.moveOn(SymDoubleDollar, ch, next)
} else {
tk = self.makeToken(SymDollar, ch)
}
@@ -249,8 +251,8 @@ func (self *scanner) fetchNextToken() (tk *Token) {
if next, _ := self.peek(); next == ')' {
tk = self.moveOn(SymOpenClosedRound, ch, next)
} else {
tk = self.makeToken(SymOpenRound, ch)
}
tk = self.makeToken(SymOpenRound, ch)
}
case ')':
tk = self.makeToken(SymClosedRound, ch)
case '[':