add file trace to parser, refactor, fix inner type

This commit is contained in:
Neemek 2025-09-30 14:09:05 +02:00
parent bcf0978b68
commit c8660a6471
Signed by: neemek
GPG key ID: 84FFE4D7D40AB25E
10 changed files with 131 additions and 51 deletions

View file

@ -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]
}