npda palindrome example
simple lexer