<- Back to shtanton's homepage
summaryrefslogtreecommitdiff
path: root/main/parse.go
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2022-12-22 15:23:28 +0000
committerCharlie Stanton <charlie@shtanton.xyz>2022-12-22 15:23:28 +0000
commitfb1f51d1da22f34509cf3fe1d174296d36a0f0ad (patch)
treef07260b169af51288e76ae095b3dce3a21f01148 /main/parse.go
parentf3911888915f6aa96e6b28bd2a98a662faf20f47 (diff)
downloadsubex-fb1f51d1da22f34509cf3fe1d174296d36a0f0ad.tar
Expressions inside stores are now subexes instead of regexes
This simplifies things by no longer needing a regex implementation It also enables transforming text as it is being read into a slot
Diffstat (limited to 'main/parse.go')
-rw-r--r--main/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/parse.go b/main/parse.go
index 6cc20ea..18941f2 100644
--- a/main/parse.go
+++ b/main/parse.go
@@ -91,7 +91,7 @@ func parseSubex(l *RuneReader, minPower int) SubexAST {
if slot == eof {
panic("Missing slot character")
}
- match := parseRegex(l, 100)
+ match := parseSubex(l, 100)
if match == nil {
panic("Missing regex for store")
}