From 8517221b1b84a0b5a343c7d8f186938a109ba2ce Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Wed, 21 Nov 2012 20:16:28 +0100 Subject: [PATCH] Inserting ternary in the qcc-operator-list at the place fteqcc would have it --- lexer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lexer.h b/lexer.h index 561148c..137bfe9 100644 --- a/lexer.h +++ b/lexer.h @@ -262,7 +262,9 @@ static const oper_info qcc_operators[] = { { "&&", 2, opid2('&','&'), ASSOC_LEFT, 5, 0 }, { "||", 2, opid2('|','|'), ASSOC_LEFT, 5, 0 }, - { ",", 2, opid1(','), ASSOC_LEFT, 1, 0 } + { ",", 2, opid1(','), ASSOC_LEFT, 2, 0 } + + { "?", 3, opid2('?',':'), ASSOC_RIGHT, 1, 0 }, }; static const size_t qcc_operator_count = (sizeof(qcc_operators) / sizeof(qcc_operators[0])); -- 2.39.2