summaryrefslogtreecommitdiff
path: root/main/tests/test_shader_lang.h
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2018-05-29 23:16:54 -0300
committerGeorge Marques <george@gmarqu.es>2018-07-20 21:55:16 -0300
commit743053734f187c220250d88e4e475b7a87767cbc (patch)
tree414a571036bf8742cb0d04a68063a84c73eded5b /main/tests/test_shader_lang.h
parentf7793fc5c9b43b35c5ef1c53e02a8c251a8ba4a4 (diff)
Add static type checks in the parser
- Resolve types for all identifiers. - Error when identifier is not found. - Match return type and error when not returning a value when it should. - Check unreachable code (code after sure return). - Match argument count and types for function calls. - Determine if return type of function call matches the assignment. - Do static type check with match statement when possible. - Use type hints to determine export type. - Check compatibility between type hint and explicit export type.
Diffstat (limited to 'main/tests/test_shader_lang.h')
0 files changed, 0 insertions, 0 deletions