Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2009-04-21 15:11:35 +0000
committerMike Kucera2009-04-21 15:11:35 +0000
commit698d5bb0ba4381911898b0922c50ff247cc110a7 (patch)
tree2a4619211d0b4352e0cea9504be84f070146d55a /xlc/org.eclipse.cdt.core.lrparser.xlc/grammar
parent795dbe40e0b4f75c0a6aa9ad6805bbc3f82544d1 (diff)
downloadorg.eclipse.cdt-698d5bb0ba4381911898b0922c50ff247cc110a7.tar.gz
org.eclipse.cdt-698d5bb0ba4381911898b0922c50ff247cc110a7.tar.xz
org.eclipse.cdt-698d5bb0ba4381911898b0922c50ff247cc110a7.zip
[273080] [XLC Parser] support for decimal floating point types (_Decimal32, _Decimal64, _Decimal128)
Diffstat (limited to 'xlc/org.eclipse.cdt.core.lrparser.xlc/grammar')
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/xlc/XlcGrammarExtensions.g12
1 files changed, 12 insertions, 0 deletions
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/xlc/XlcGrammarExtensions.g b/xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/xlc/XlcGrammarExtensions.g
index d1bc86b3702..58fe3cf505e 100644
--- a/xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/xlc/XlcGrammarExtensions.g
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/xlc/XlcGrammarExtensions.g
@@ -20,6 +20,10 @@ $Terminals
pixel
bool
+ _Decimal32
+ _Decimal64
+ _Decimal128
+
$End
@@ -28,6 +32,14 @@ $End
$Rules
+
+
+simple_type_specifier_token
+ ::= '_Decimal32'
+ | '_Decimal64'
+ | '_Decimal128'
+
+
type_id
::= vector_type
/. $Build consumeTypeId(false); $EndBuild ./

Back to the top