diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2022-12-22 15:23:28 +0000 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2022-12-22 15:23:28 +0000 |
commit | fb1f51d1da22f34509cf3fe1d174296d36a0f0ad (patch) | |
tree | f07260b169af51288e76ae095b3dce3a21f01148 /main/parse.go | |
parent | f3911888915f6aa96e6b28bd2a98a662faf20f47 (diff) | |
download | subex-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.go | 2 |
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") } |