Renamed match function to 'findAllMatches', to better represent what it does
This commit is contained in:
2
main.go
2
main.go
@@ -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] {
|
||||
|
Reference in New Issue
Block a user