https://github.com/shader-slang/slang
Revision f69bc6cdb10aab2d1b202668cb7ecbcc0ddf33f2 authored by Tim Foley on 07 July 2017, 21:30:26 UTC, committed by Tim Foley on 09 July 2017, 01:18:36 UTC
This is in anticipation of needing to have more complete knowledge to be able to handle user code that `import`s library functionality.

The big picture of this change is just to remove the `UnparsedStmt` class that was used to hold the bodies of user functions as opaque token streams, and thus to let the full parser and compiler loose on that code. That is the easy part, of course, and the hard part is all the fixes that this requires in the rest of the compielr to make this even remotely work.

Subsequent commit address a lot of other issues, so this particular commit mostly represents work-in-progress.

One detail is that this change puts a conditional around nearly every diagnostic message in `check.cpp` to suppress thing when in rewriter mode.
I have yet to check how that works out if there are errors in anything we actually need to understand for the purposes of generating reflection data.
1 parent f3fe9dd
History
Tip revision: f69bc6cdb10aab2d1b202668cb7ecbcc0ddf33f2 authored by Tim Foley on 07 July 2017, 21:30:26 UTC
Fully parse function bodies, even in "rewriter" mode
Tip revision: f69bc6c
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.8 KB
slang.sln -rw-r--r-- 6.3 KB
test.bat -rw-r--r-- 1.4 KB

README.md

back to top