https://github.com/shader-slang/slang
Revision 9ba8ce30f8314a79169e6d9cfa12e5db7239693f authored by Tim Foley on 16 June 2017, 16:09:09 UTC, committed by Tim Foley on 16 June 2017, 16:09:09 UTC
When in rewriter mode, the emit logic will never see function applications inside function bodies, but it *will* see function application expressions at global scope, and some of these expressions might be unchecked.

The challenge here is that even simple math operations now show up as function calls, so we need a bit of special-case logic to detect unchecked calls and then emit them using the syntax they were written with (e.g., use infix syntax if they were written as an infix expression).
1 parent 0bf3d6d
History
Tip revision: 9ba8ce30f8314a79169e6d9cfa12e5db7239693f authored by Tim Foley on 16 June 2017, 16:09:09 UTC
Bug fix: handle unchecked operator application in emit logic
Tip revision: 9ba8ce3
File Mode Size
build
examples
external
source
tests
tools
.gitignore -rw-r--r-- 247 bytes
.gitmodules -rw-r--r-- 107 bytes
LICENSE -rw-r--r-- 1.1 KB
README.md -rw-r--r-- 1.5 KB
appveyor.yml -rw-r--r-- 1.5 KB
slang.h -rw-r--r-- 28.4 KB
slang.sln -rw-r--r-- 6.3 KB
test.bat -rw-r--r-- 1.4 KB

README.md

back to top