moving parser to stack implementation

woooooooooooooooo