#Bugs#
Bugs
Here are three examples that will cause problems with your state machine:
'\\'
"\\"
/* comment **/
In the first two examples, your state machine doesn't recognize the end quotes because of the preceding backslash characters, even though the backslashes were already "consumed" by the other backslashes.
In the third example, the state machine fails to recognize the end of comment. The problem is that the double star should cause the state to remain in the STAR
state but it instead reverts to the MULTI_COMMENT
state.
#Bugs#
Here are three examples that will cause problems with your state machine:
'\\'
"\\"
/* comment **/
In the first two examples, your state machine doesn't recognize the end quotes because of the preceding backslash characters, even though the backslashes were already "consumed" by the other backslashes.
In the third example, the state machine fails to recognize the end of comment. The problem is that the double star should cause the state to remain in the STAR
state but it instead reverts to the MULTI_COMMENT
state.
Bugs
Here are three examples that will cause problems with your state machine:
'\\'
"\\"
/* comment **/
In the first two examples, your state machine doesn't recognize the end quotes because of the preceding backslash characters, even though the backslashes were already "consumed" by the other backslashes.
In the third example, the state machine fails to recognize the end of comment. The problem is that the double star should cause the state to remain in the STAR
state but it instead reverts to the MULTI_COMMENT
state.
#Bugs#
Here are three examples that will cause problems with your state machine:
'\\'
"\\"
/* comment **/
In the first two examples, your state machine doesn't recognize the end quotes because of the preceding backslash characters, even though the backslashes were already "consumed" by the other backslashes.
In the third example, the state machine fails to recognize the end of comment. The problem is that the double star should cause the state to remain in the STAR
state but it instead reverts to the MULTI_COMMENT
state.