Moved Lexer-related things from core.py to lex.py
Added a wrapper for PLY's yacc which is more pleasant to use