mirror of
https://github.com/rwxrob/bonzai
synced 2024-11-16 21:25:44 +00:00
Remove commented out code
This commit is contained in:
parent
0eaab2b0cf
commit
44b50aa331
36
scan/scan.go
36
scan/scan.go
@ -351,42 +351,6 @@ func (s *R) Expect(expr any) (*Cur, error) {
|
||||
}
|
||||
s.Jump(m)
|
||||
return nil, s.ErrorExpected(v)
|
||||
/*
|
||||
back := s.Mark()
|
||||
b4 := s.Mark()
|
||||
for s.Cur.Rune != tk.EOD {
|
||||
for _, i := range v {
|
||||
m, _ := s.Expect(i)
|
||||
if m != nil {
|
||||
return b4, nil
|
||||
}
|
||||
}
|
||||
b4 = s.Mark()
|
||||
s.Scan()
|
||||
}
|
||||
s.Jump(back)
|
||||
return nil, s.ErrorExpected(v)
|
||||
*/
|
||||
|
||||
/*
|
||||
var m, b4 *Cur
|
||||
OUT:
|
||||
for s.Cur.Rune != tk.EOD {
|
||||
for _, i := range v {
|
||||
m, _ = s.Expect(i)
|
||||
if m != nil {
|
||||
break OUT
|
||||
}
|
||||
}
|
||||
b4 = s.Mark()
|
||||
s.Scan()
|
||||
}
|
||||
if m == nil {
|
||||
err := s.ErrorExpected(v)
|
||||
return nil, err
|
||||
}
|
||||
return b4, nil
|
||||
*/
|
||||
|
||||
case is.It: // ----------------------------------------------------
|
||||
var m *Cur
|
||||
|
Loading…
Reference in New Issue
Block a user