mojoshader_parser_hlsl.lemon
changeset 924 c99418745e1b
parent 922 9b5879d36f36
child 926 8ac335735b37
--- a/mojoshader_parser_hlsl.lemon	Tue Oct 19 17:48:24 2010 -0400
+++ b/mojoshader_parser_hlsl.lemon	Wed Oct 20 02:19:34 2010 -0400
@@ -460,6 +460,8 @@
 primary_expr(A) ::= INT_CONSTANT(B). { A = new_literal_int_expr(ctx, B.i64); }
 primary_expr(A) ::= FLOAT_CONSTANT(B). { A = new_literal_float_expr(ctx, B.dbl); }
 primary_expr(A) ::= STRING_LITERAL(B). { A = new_literal_string_expr(ctx, B.string); }
+primary_expr(A) ::= TRUE. { A = new_literal_boolean_expr(ctx, 1); }
+primary_expr(A) ::= FALSE. { A = new_literal_boolean_expr(ctx, 0); }
 primary_expr(A) ::= LPAREN expression(B) RPAREN. { A = B; }
 
 %type postfix_expr { Expression * }