Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2010-03-16 18:35:48 +0000
committerMike Kucera2010-03-16 18:35:48 +0000
commitd3386e3dd276f7e9ecd9132beb2149fb3b731f02 (patch)
tree54e07ee1fc57ecb9a12a9f2fb2293cea23589dd5 /xlc/org.eclipse.cdt.core.lrparser.xlc/grammar
parent6fd9d653583adf3f0c109f0e2ac4c13b67149386 (diff)
downloadorg.eclipse.cdt-d3386e3dd276f7e9ecd9132beb2149fb3b731f02.tar.gz
org.eclipse.cdt-d3386e3dd276f7e9ecd9132beb2149fb3b731f02.tar.xz
org.eclipse.cdt-d3386e3dd276f7e9ecd9132beb2149fb3b731f02.zip
Bug 303065 - support new constructs by the upcoming v11.1 XL C/C++ compiler
Diffstat (limited to 'xlc/org.eclipse.cdt.core.lrparser.xlc/grammar')
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/parserBuild.properties15
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/xlc/XlcCPPParser.g5
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/xlc/XlcGrammarExtensions.g8
3 files changed, 25 insertions, 3 deletions
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/parserBuild.properties b/xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/parserBuild.properties
new file mode 100644
index 00000000000..170f3d81eff
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/parserBuild.properties
@@ -0,0 +1,15 @@
+###############################################################################
+# Copyright (c) 2010 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+
+
+lpg_exe=D:/lpg/lpgdistribution/lpgexe/lpg.exe
+lpg_template=D:/newWorkspace/CDT_LOCAL/org.eclipse.cdt.core.lrparser/grammar/template
+lpg_include=D:/newWorkspace/CDT_LOCAL/org.eclipse.cdt.core.lrparser/grammar/gpp \ No newline at end of file
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/xlc/XlcCPPParser.g b/xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/xlc/XlcCPPParser.g
index b2bc76c4685..5a38c3945f9 100644
--- a/xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/xlc/XlcCPPParser.g
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/xlc/XlcCPPParser.g
@@ -1,5 +1,5 @@
-----------------------------------------------------------------------------------
--- Copyright (c) 2009 IBM Corporation and others.
+-- Copyright (c) 2009, 2010 IBM Corporation and others.
-- All rights reserved. This program and the accompanying materials
-- are made available under the terms of the Eclipse Public License v1.0
-- which accompanies this distribution, and is available at
@@ -60,6 +60,7 @@ cv_qualifier
block_declaration
::= vector_declaration
+ | static_assert_declaration
identifier_token
@@ -95,5 +96,7 @@ array_modifier_type_qualifiers
type_qualifier_list
::= cv_qualifier
| type_qualifier_list cv_qualifier
+member_declaration
+ ::= static_assert_declaration
$End \ No newline at end of file
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 58fe3cf505e..739d9c9fc38 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
@@ -1,5 +1,5 @@
-----------------------------------------------------------------------------------
--- Copyright (c) 2009 IBM Corporation and others.
+-- Copyright (c) 2009, 2010 IBM Corporation and others.
-- All rights reserved. This program and the accompanying materials
-- are made available under the terms of the Eclipse Public License v1.0
-- which accompanies this distribution, and is available at
@@ -23,6 +23,7 @@ $Terminals
_Decimal32
_Decimal64
_Decimal128
+ __static_assert
$End
@@ -89,6 +90,9 @@ no_type_declaration_specifiers_opt
::= no_type_declaration_specifiers
| $empty
-
+static_assert_declaration
+ ::= '__static_assert' '(' expression ',' literal ')' ';'
+ /. $Build consumeCPPASTStaticAssertDeclaration(); $EndBuild ./
+
$End

Back to the top