add Parser to simple_flex.py