Implementation of trie, operator, and their parsers