enabling PreProcess
refactoring variables: beginIdx,endIdx
adding Parser/TypeChecker methods..