Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2009-04-21 11:11:35 -0400
committerMike Kucera2009-04-21 11:11:35 -0400
commit698d5bb0ba4381911898b0922c50ff247cc110a7 (patch)
tree2a4619211d0b4352e0cea9504be84f070146d55a /lrparser/org.eclipse.cdt.core.lrparser
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 'lrparser/org.eclipse.cdt.core.lrparser')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g15
1 files changed, 4 insertions, 11 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g b/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g
index cd6340a2df..752839327b 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g
+++ b/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g
@@ -907,28 +907,21 @@ function_specifier
simple_type_specifier
- ::= 'char'
+ ::= simple_type_specifier_token
/. $Build consumeToken(); $EndBuild ./
+
+simple_type_specifier_token
+ ::= 'char'
| 'wchar_t'
- /. $Build consumeToken(); $EndBuild ./
| 'bool'
- /. $Build consumeToken(); $EndBuild ./
| 'short'
- /. $Build consumeToken(); $EndBuild ./
| 'int'
- /. $Build consumeToken(); $EndBuild ./
| 'long'
- /. $Build consumeToken(); $EndBuild ./
| 'signed'
- /. $Build consumeToken(); $EndBuild ./
| 'unsigned'
- /. $Build consumeToken(); $EndBuild ./
| 'float'
- /. $Build consumeToken(); $EndBuild ./
| 'double'
- /. $Build consumeToken(); $EndBuild ./
| 'void'
- /. $Build consumeToken(); $EndBuild ./
-- last two rules moved here from simple_type_specifier

Back to the top