Commit Graph

34 Commits (4781b87b90913073506e4d4cd395dcca25e6e743)
 

Author SHA1 Message Date
Aadhavan Srinivasan 4781b87b90 Added comments
Aadhavan Srinivasan bf3060b672 Used 'unique append' to ensure that a transition can only contain a given state once
Aadhavan Srinivasan 50e86b5db4 Added 'unique append' function, to ensure that elements in slice are unique
Aadhavan Srinivasan b1e2d7147e Added tests
Aadhavan Srinivasan b327143fa2 Added function for concatenation and kleene star
Aadhavan Srinivasan c9fdf5aa6c Restored old behavior with end-of-string - new one didn't seem to work well
Aadhavan Srinivasan 956bdbdcb6 Added test case
Aadhavan Srinivasan 761a5ad052 Added functions for concatenation and kleene star creation, removed relevant code from main
Aadhavan Srinivasan 916168dd42 Updated TODO
Aadhavan Srinivasan cd2b800b04 Fixed greediness of kleene star
Aadhavan Srinivasan d1205c781c Added 'mustPop' function which panics if slice is empty
Aadhavan Srinivasan 5ee427230c Replaced 'pop' with 'mustPop' which panics on error
Aadhavan Srinivasan 3f2b4716f1 Added more test cases
Aadhavan Srinivasan 91128c218e Updated TODO
Aadhavan Srinivasan d0e812a730 Return error if stack is empty
Aadhavan Srinivasan 273a03e3cf Added more test cases
Aadhavan Srinivasan 935759ed9f Added testing file
Aadhavan Srinivasan db7d946c5c Updated todo
Aadhavan Srinivasan 139c88dd58 Started working on '+' operator
Aadhavan Srinivasan c894ee4c0d Renamed match function to 'findAllMatches', to better represent what it does
Aadhavan Srinivasan ce156c4405 Fixed kleene star matching at end of string - failed test a* and ppppppppaaaaaaaa
Aadhavan Srinivasan 9d786997df Initial support for multiple matching
Aadhavan Srinivasan 60b798d904 Working on multiple matching
Aadhavan Srinivasan 11dd6aeb7c More Kleene star fixes
Aadhavan Srinivasan 9d3bc2b804 Fixed kleene star behavior, which used to behave like a '+'
Aadhavan Srinivasan 2cd43bf2a1 Added TODO
Aadhavan Srinivasan cc0098b558 Print matched content in color
Aadhavan Srinivasan bc11777ad5 Fixed Kleene Star matching
Aadhavan Srinivasan d191686168 Rudimentary matching works
Aadhavan Srinivasan 9f9de2234f Added gitignore
Aadhavan Srinivasan 52bf14dcbf Disable compile-time optimization
Aadhavan Srinivasan 213da40c3b Allow one state to map to multiple states with the same transition eg. ab|aa
Aadhavan Srinivasan 8394e7867e Fixed bug with last state detection
Aadhavan Srinivasan 82b33f3c9a First commit