diff options
Diffstat (limited to 'parser/statefunc.go')
-rw-r--r-- | parser/statefunc.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/parser/statefunc.go b/parser/statefunc.go deleted file mode 100644 index 69d7098..0000000 --- a/parser/statefunc.go +++ /dev/null @@ -1,17 +0,0 @@ -package parser - -type stateFunc func(*lexer) stateFunc - -type stateStack []stateFunc - -func (ss *stateStack) Push(s stateFunc) { - *ss = append(*ss, s) -} - -func (ss *stateStack) Pop() (s stateFunc) { - if len(*ss) == 0 { - return nil - } - *ss, s = (*ss)[:len(*ss)-1], (*ss)[len(*ss)-1] - return s -} |