Renamed match function to 'findAllMatches', to better represent what it does

This commit is contained in:
2024-10-24 12:31:37 -04:00
parent ce156c4405
commit c894ee4c0d
2 changed files with 6 additions and 6 deletions

View File

@@ -178,7 +178,7 @@ func main() {
re_postfix := shuntingYard(re)
// fmt.Println(re_postfix)
startState := thompson(re_postfix)
matchIndices := match(startState, os.Args[2])
matchIndices := findAllMatches(startState, os.Args[2])
inColor := false
if len(matchIndices) > 0 {
for i, c := range os.Args[2] {