fixes and improvements #55

Merged
vtolstov merged 6 commits from util-router into master 2021-08-03 00:24:40 +03:00
Showing only changes of commit 18fad18163 - Show all commits

View File

@ -30,7 +30,7 @@ type Compiler interface {
type op struct { type op struct {
// code is the opcode of the operation // code is the opcode of the operation
code utilities.OpCode code OpCode
// str is a string operand of the code. // str is a string operand of the code.
// num is ignored if str is not empty. // num is ignored if str is not empty.
@ -67,7 +67,7 @@ func (v variable) compile() []op {
ops = append(ops, s.compile()...) ops = append(ops, s.compile()...)
} }
ops = append(ops, op{ ops = append(ops, op{
code: utilities.OpConcatN, code: OpConcatN,
num: len(v.segments), num: len(v.segments),
}, op{ }, op{
code: OpCapture, code: OpCapture,