Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrote HLSL grammar, mostly from scratch.
I kept most of Jeff Lee's work for expressions, but the rest I rewrote, following the docs at MSDN for grammar details. I found this was both easier than weeding out the C-specific bits and wedging in the HLSL parts, and it should give me a richer understanding of how the guts of the parser work. This isn't quite complete yet. Notably, it doesn't handle HLSL-style constructors for vector types: float4 x = float4(1,2,3,4);" for example.
- Loading branch information
Showing
2 changed files
with
555 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.