correctly compiles an expression of a single digit