/foo/ ->
/bar/ ->, println
this surprised me because I though that if the match at the beginning of a line was false then I could just skip to the next line, but instead what I need to do is scan for a comma to see if there is another statement. I understand that the purpose of the comma is to allow anonymous states with more than one statement, but I would have a less error prone time reading if each statement had be on its own line but could start with a specific character to indicate that it was still part of the same state as the previous statement.
this surprised me because I though that if the match at the beginning of a line was false then I could just skip to the next line, but instead what I need to do is scan for a comma to see if there is another statement. I understand that the purpose of the comma is to allow anonymous states with more than one statement, but I would have a less error prone time reading if each statement had be on its own line but could start with a specific character to indicate that it was still part of the same state as the previous statement.