Expand description
The parser: preprocessed tokens to a syntax tree.
After an error the parser skips to the end of the statement or item and goes on, so one run reports all independent errors.
Constants§
- MAX_
DEPTH - The deepest nesting of expressions and statements the parser accepts.
- MAX_
TREE_ DEPTH - The deepest expression tree the parser builds. Any recursive walk over a
tree,
Dropincluded, then stays within a small stack.
Functions§
- is_
builtin_ type wordnames a type that HLSL defines, for examplefloat3x4orsampler2D.- parse_
tokens - Parses preprocessed tokens into a syntax tree.
eofis where an error at the end of the input points: the end of the main file.