add file trace to parser, refactor, fix inner type
This commit is contained in:
parent
bcf0978b68
commit
c8660a6471
10 changed files with 131 additions and 51 deletions
|
|
@ -56,3 +56,8 @@ func (s *Stack[T]) check() {
|
|||
panic("stack underflow")
|
||||
}
|
||||
}
|
||||
|
||||
// Slice gets a slice of the current items in use
|
||||
func (s *Stack[T]) Slice() []T {
|
||||
return s.items[:s.Current]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue