diff options
author | NeonXP <i@neonxp.dev> | 2022-12-27 02:37:02 +0300 |
---|---|---|
committer | NeonXP <i@neonxp.dev> | 2022-12-27 02:40:03 +0300 |
commit | 76a7f461ebbde70ea0e3d4f9b79c08139acaee7c (patch) | |
tree | 5e6dcb05f00be5109b3465ef16a6e9169a27497e /parser/statefunc.go | |
parent | 6f1d1df79f161cfc695f74d271d689ba72c44d09 (diff) |
Completely rewritedv0.1.0
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 -} |