diff options
Diffstat (limited to 'internal')
-rw-r--r-- | internal/parse.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/parse.go b/internal/parse.go index b11aae6..9db57fb 100644 --- a/internal/parse.go +++ b/internal/parse.go @@ -349,6 +349,10 @@ func (par *Parser) StackIsEmpty() bool { return len(par.stack) == 0 || (len(par.stack) == 1 && par.stack[0] == runeTypeAny) } +func (par *Parser) StackSize() int { + return len(par.stack) +} + // Reset all Parser state. func (par *Parser) Reset() { *par = Parser{ |