basic token reader and node types.