Hacker-007 / envious

A Simplistic Programming Language That Targets the LLVM.
MIT License
9 stars 3 forks source link

Better semantic analysis #26

Open Hacker-007 opened 4 years ago

Hacker-007 commented 4 years ago

If a method is declared and as the expression, an if expression is used, then the method may produce unexpected output if no else section is provided. Currently, the compiler can not detect this issue. This may require some changing of how expressions are detected and if the else section is necessary for certain things.

Hacker-007 commented 3 years ago

This will require some new files in the semantic analyzer file. This is where we would most likely check for proper return statements, make sure that all paths of travel are met, and where we would check for other semantic needs.