use deque as stack to store enters; use working level 1 compiler