<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/subex
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-07-19 12:16:39 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-07-19 12:16:39 +0100
commitac153f2b90b966baaf132a487514ae2194a64dd5 (patch)
tree39f63785de58ce4f6d8055847d5f0efa54d9499b /subex
parent7d53110f2773ba758dea2f5c00483d879d378870 (diff)
downloadstred-go-ac153f2b90b966baaf132a487514ae2194a64dd5.tar
Removes lots of old atom based code from walk
Diffstat (limited to 'subex')
-rw-r--r--subex/parse.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/subex/parse.go b/subex/parse.go
index a671e6d..7d0e586 100644
--- a/subex/parse.go
+++ b/subex/parse.go
@@ -22,17 +22,6 @@ func accept(l RuneReader, chars string) bool {
return false
}
-func expectBracket(l RuneReader, ifLeft walk.AtomOLD, ifRight walk.AtomOLD) walk.AtomOLD {
- switch l.Next() {
- case '(':
- return ifLeft
- case ')':
- return ifRight
- default:
- panic("Expected ( or )")
- }
-}
-
func isNumericRune(r rune) bool {
return '0' <= r && r <= '9' || r == '.'
}