Added HLSL constructor to the grammar.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 06 Mar 2009 19:34:06 -0500
changeset 722 d483a61ef502
parent 721 82d1aec6b549
child 723 6d58b504cc6e
Added HLSL constructor to the grammar.
mojoshader_parser_hlsl.lemon
--- a/mojoshader_parser_hlsl.lemon	Fri Mar 06 19:26:47 2009 -0500
+++ b/mojoshader_parser_hlsl.lemon	Fri Mar 06 19:34:06 2009 -0500
@@ -459,6 +459,7 @@
 postfix_expr ::= postfix_expr LBRACKET expression RBRACKET.
 postfix_expr ::= postfix_expr LPAREN RPAREN.
 postfix_expr ::= postfix_expr LPAREN argument_expr_list RPAREN.
+postfix_expr ::= datatype LPAREN argument_expr_list RPAREN.  // HLSL constructor
 postfix_expr ::= postfix_expr DOT identifier.
 postfix_expr ::= postfix_expr PLUSPLUS.
 postfix_expr ::= postfix_expr MINUSMINUS.