fixed semantic analysis
Merge pull request #3 from musgravejw/semantic

fixed semantic analysis