mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 06:20:38 +00:00
@@ -171,3 +171,24 @@ proc encodedQuery =
|
||||
elem.tt()
|
||||
|
||||
encodedQuery()
|
||||
|
||||
# bug #15147
|
||||
|
||||
proc s(input: string): (string, string) =
|
||||
result = (";", "")
|
||||
|
||||
proc charmatch(input: string): (string, string) =
|
||||
result = ("123", input[0 .. input.high])
|
||||
|
||||
proc plus(input: string) =
|
||||
var
|
||||
lvalue, rvalue: string # cursors
|
||||
lnext: string # must be cursor!!!
|
||||
rnext: string # cursor
|
||||
let lresult = charmatch(input)
|
||||
(lvalue, lnext) = lresult
|
||||
|
||||
let rresult = s(lnext)
|
||||
(rvalue, rnext) = rresult
|
||||
|
||||
plus("123;")
|
||||
|
||||
Reference in New Issue
Block a user