define action functions for a character
parse the input and use the character functions in order to test