Commit f31e798b authored by anisko_r's avatar anisko_r
Browse files

2002-08-05 Robert Anisko <robert@lrde.epita.fr>

	* src/grammar/MemberSpecifications.sdf: Rewrite the rules that
	produce `MemberDeclarator' to avoid useless conflicts.
parent c91a0a74
2002-08-05 Robert Anisko <robert@lrde.epita.fr>
* src/grammar/MemberSpecifications.sdf: Rewrite the rules that
produce `MemberDeclarator' to avoid useless conflicts.
2002-08-01 Robert Anisko <robert@lrde.epita.fr>
* src/grammar/Makefile.am: Generate the pretty printing table.
......
;; -*- Prcs -*-
(Created-By-Prcs-Version 1 3 2)
(Project-Description "Meta/SDF Grammar for C++")
(Project-Version meta-c++-grammar 0 80)
(Parent-Version meta-c++-grammar 0 79)
(Version-Log "2002-08-01 Robert Anisko <robert@lrde.epita.fr>
(Project-Version meta-c++-grammar 0 81)
(Parent-Version meta-c++-grammar 0 80)
(Version-Log "2002-08-05 Robert Anisko <robert@lrde.epita.fr>
* src/grammar/Makefile.am: Generate the pretty printing table.")
* src/grammar/MemberSpecifications.sdf: Rewrite the rules that
produce `MemberDeclarator' to avoid useless conflicts.")
(New-Version-Log "")
(Checkin-Time "Thu, 01 Aug 2002 17:59:03 +0200")
(Checkin-Time "Mon, 05 Aug 2002 17:51:00 +0200")
(Checkin-Login anisko_r)
(Populate-Ignore
(
......@@ -76,7 +77,7 @@
)
(Project-Keywords)
(Files
(ChangeLog (meta-c++-grammar/0_ChangeLog 1.79 640))
(ChangeLog (meta-c++-grammar/0_ChangeLog 1.80 640))
(Makefile.am (meta-c++-grammar/f/34_Makefile.a 1.2 640))
(TODO (meta-c++-grammar/f/27_TODO 1.2 640))
......@@ -168,7 +169,7 @@
(src/grammar/LogicalAndExpressions.sdf (meta-c++-grammar/51_LogicalAnd 1.4 640))
(src/grammar/LogicalOrExpressions.sdf (meta-c++-grammar/b/0_LogicalOrE 1.4 640))
(src/grammar/Makefile.am (meta-c++-grammar/f/47_Makefile.a 1.8 640))
(src/grammar/MemberSpecifications.sdf (meta-c++-grammar/b/1_MemberSpec 1.5 640))
(src/grammar/MemberSpecifications.sdf (meta-c++-grammar/b/1_MemberSpec 1.6 640))
(src/grammar/MultiplicativeExpressions.sdf (meta-c++-grammar/b/2_Multiplica 1.5 640))
(src/grammar/NamespaceAliases.sdf (meta-c++-grammar/b/3_NamespaceA 1.4 640))
(src/grammar/Namespaces.sdf (meta-c++-grammar/b/4_Namespaces 1.5 640))
......
......@@ -32,9 +32,17 @@ exports
{ MemberDeclarator "," }+ -> MemberDeclaratorList
%% 9.2 [class.mem]
Declarator PureSpecifier? -> MemberDeclarator
Declarator ConstantInitializer? -> MemberDeclarator
Identifier? ":" ConstantExpression -> MemberDeclarator
%% Declarator PureSpecifier? -> MemberDeclarator
%% Declarator ConstantInitializer? -> MemberDeclarator
%% Identifier? ":" ConstantExpression -> MemberDeclarator
%% The chunk of grammar above generates useless ambiguities
%% when both `PureSpecifier?' and `ConstantInitializer?' are
%% empty. It will work better this way:
Declarator -> MemberDeclarator
Declarator PureSpecifier -> MemberDeclarator
Declarator ConstantInitializer -> MemberDeclarator
Identifier? ":" ConstantExpression -> MemberDeclarator
%% 9.2 [class.mem]
"=" "0" -> PureSpecifier
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment