Commit Graph

20 Commits (2af4a5f9fd206386c1b24e340c4b88b802dfdd88)

Author SHA1 Message Date
Aadhavan Srinivasan 11073759e3 Added support for character classes (not ranges, yet); also take input from stdin instead of cmdline arg
Aadhavan Srinivasan 84c768fd5e Fixed small bug with question mark operator, wasn't adding the empty state's output
Aadhavan Srinivasan 7286e07858 Added question mark operator - 0 or 1
Aadhavan Srinivasan ae219f763a Added alternate function, removed relevant code from main; also started working on escape characters
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 761a5ad052 Added functions for concatenation and kleene star creation, removed relevant code from main
Aadhavan Srinivasan 5ee427230c Replaced 'pop' with 'mustPop' which panics on error
Aadhavan Srinivasan 273a03e3cf Added more test cases
Aadhavan Srinivasan 139c88dd58 Started working on '+' operator
Aadhavan Srinivasan c894ee4c0d Renamed match function to 'findAllMatches', to better represent what it does
Aadhavan Srinivasan 9d786997df Initial support for multiple matching
Aadhavan Srinivasan 11dd6aeb7c More Kleene star fixes
Aadhavan Srinivasan 9d3bc2b804 Fixed kleene star behavior, which used to behave like a '+'
Aadhavan Srinivasan cc0098b558 Print matched content in color
Aadhavan Srinivasan bc11777ad5 Fixed Kleene Star matching
Aadhavan Srinivasan d191686168 Rudimentary matching works
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