URL:
https://svn.lrde.epita.fr/svn/scool/branches/scool-ng
ChangeLog:
2008-09-24 Maxime van Noppen <yabo(a)lrde.epita.fr>
Handle the final keyword
* class/c++_src/final_001.cc: New.
* class/c++_ast/final_001.aterm: New.
* class/c++_ast/empty.aterm,
* class/c++_ast/empty_accessblocks.aterm,
* class/c++_ast/empty_private.aterm,
* class/c++_ast/empty_protected.aterm,
* class/c++_ast/empty_public.aterm,
* class/c++_ast/member_001.aterm,
* class/c++_ast/member_002.aterm,
* class/c++_ast/method_001.aterm,
* class/c++_ast/method_002.aterm,
* class/c++_ast/method_003.aterm,
* class/c++_ast/method_004.aterm,
* class/c++_ast/method_005.aterm,
* class/c++_src/empty.cc,
* class/c++_src/empty_accessblocks.cc,
* class/c++_src/empty_private.cc,
* class/c++_src/empty_protected.cc,
* class/c++_src/empty_public.cc,
* class/c++_src/member_001.cc,
* class/c++_src/member_002.cc,
* class/c++_src/method_001.cc,
* class/c++_src/method_002.cc,
* class/c++_src/method_003.cc,
* class/c++_src/method_004.cc,
* class/c++_src/method_005.cc: Rename the 'T' parameter into 'Exact'.
c++_ast/empty.aterm | 2 +-
c++_ast/empty_accessblocks.aterm | 2 +-
c++_ast/empty_private.aterm | 2 +-
c++_ast/empty_protected.aterm | 2 +-
c++_ast/empty_public.aterm | 2 +-
c++_ast/final_001.aterm | 1 +
c++_ast/member_001.aterm | 2 +-
c++_ast/member_002.aterm | 2 +-
c++_ast/method_001.aterm | 2 +-
c++_ast/method_002.aterm | 2 +-
c++_ast/method_003.aterm | 2 +-
c++_ast/method_004.aterm | 2 +-
c++_ast/method_005.aterm | 2 +-
c++_src/empty.cc | 2 +-
c++_src/empty_accessblocks.cc | 2 +-
c++_src/empty_private.cc | 2 +-
c++_src/empty_protected.cc | 2 +-
c++_src/empty_public.cc | 2 +-
c++_src/final_001.cc | 3 +++
c++_src/member_001.cc | 2 +-
c++_src/member_002.cc | 2 +-
c++_src/method_001.cc | 2 +-
c++_src/method_002.cc | 2 +-
c++_src/method_003.cc | 2 +-
c++_src/method_004.cc | 2 +-
c++_src/method_005.cc | 2 +-
26 files changed, 28 insertions(+), 24 deletions(-)
Index: branches/scool-ng/tests/class/c++_ast/empty_private.aterm
===================================================================
--- branches/scool-ng/tests/class/c++_ast/empty_private.aterm (revision 101)
+++ branches/scool-ng/tests/class/c++_ast/empty_private.aterm (revision 102)
@@ -1 +1 @@
-CxxProgram([CxxClassDecl([(CxxType("typename"),"T")],CxxId("Foo"),[],[CxxPrivate([])])])
+CxxProgram([CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Foo"),[],[CxxPrivate([])])])
Index: branches/scool-ng/tests/class/c++_ast/member_002.aterm
===================================================================
--- branches/scool-ng/tests/class/c++_ast/member_002.aterm (revision 101)
+++ branches/scool-ng/tests/class/c++_ast/member_002.aterm (revision 102)
@@ -1 +1 @@
-CxxProgram([CxxClassDecl([(CxxType("typename"),"T")],CxxId("Point2d"),[],[CxxPublic([CxxDecl(CxxType("int"),CxxId("x")),CxxDecl(CxxType("int"),CxxId("y"))])])])
+CxxProgram([CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Point2d"),[],[CxxPublic([CxxDecl(CxxType("int"),CxxId("x")),CxxDecl(CxxType("int"),CxxId("y"))])])])
Index: branches/scool-ng/tests/class/c++_ast/final_001.aterm
===================================================================
--- branches/scool-ng/tests/class/c++_ast/final_001.aterm (revision 0)
+++ branches/scool-ng/tests/class/c++_ast/final_001.aterm (revision 102)
@@ -0,0 +1 @@
+CxxProgram([CxxClassDecl([],CxxId("Student"),[],[])])
Index: branches/scool-ng/tests/class/c++_ast/empty_public.aterm
===================================================================
--- branches/scool-ng/tests/class/c++_ast/empty_public.aterm (revision 101)
+++ branches/scool-ng/tests/class/c++_ast/empty_public.aterm (revision 102)
@@ -1 +1 @@
-CxxProgram([CxxClassDecl([(CxxType("typename"),"T")],CxxId("Foo"),[],[CxxPublic([])])])
+CxxProgram([CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Foo"),[],[CxxPublic([])])])
Index: branches/scool-ng/tests/class/c++_ast/empty_accessblocks.aterm
===================================================================
--- branches/scool-ng/tests/class/c++_ast/empty_accessblocks.aterm (revision 101)
+++ branches/scool-ng/tests/class/c++_ast/empty_accessblocks.aterm (revision 102)
@@ -1 +1 @@
-CxxProgram([CxxClassDecl([(CxxType("typename"),"T")],CxxId("Foo"),[],[CxxPublic([]),CxxProtected([]),CxxPrivate([])])])
+CxxProgram([CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Foo"),[],[CxxPublic([]),CxxProtected([]),CxxPrivate([])])])
Index: branches/scool-ng/tests/class/c++_ast/empty.aterm
===================================================================
--- branches/scool-ng/tests/class/c++_ast/empty.aterm (revision 101)
+++ branches/scool-ng/tests/class/c++_ast/empty.aterm (revision 102)
@@ -1 +1 @@
-CxxProgram([CxxClassDecl([(CxxType("typename"),"T")],CxxId("Foo"),[],[])])
+CxxProgram([CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Foo"),[],[])])
Index: branches/scool-ng/tests/class/c++_ast/method_001.aterm
===================================================================
--- branches/scool-ng/tests/class/c++_ast/method_001.aterm (revision 101)
+++ branches/scool-ng/tests/class/c++_ast/method_001.aterm (revision 102)
@@ -1 +1 @@
-CxxProgram([CxxClassDecl([(CxxType("typename"),"T")],CxxId("Foo"),[],[CxxPublic([CxxFun([],CxxType("int"),CxxId("test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("42")))])])])])
+CxxProgram([CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Foo"),[],[CxxPublic([CxxFun([],CxxType("int"),CxxId("test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("42")))])])])])
Index: branches/scool-ng/tests/class/c++_ast/method_002.aterm
===================================================================
--- branches/scool-ng/tests/class/c++_ast/method_002.aterm (revision 101)
+++ branches/scool-ng/tests/class/c++_ast/method_002.aterm (revision 102)
@@ -1 +1 @@
-CxxProgram([CxxClassDecl([(CxxType("typename"),"T")],CxxId("Foo"),[],[CxxPublic([CxxFun([],CxxType("int"),CxxId("test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("42")))])])])])
+CxxProgram([CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Foo"),[],[CxxPublic([CxxFun([],CxxType("int"),CxxId("test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("42")))])])])])
Index: branches/scool-ng/tests/class/c++_ast/method_003.aterm
===================================================================
--- branches/scool-ng/tests/class/c++_ast/method_003.aterm (revision 101)
+++ branches/scool-ng/tests/class/c++_ast/method_003.aterm (revision 102)
@@ -1 +1 @@
-CxxProgram([CxxClassDecl([(CxxType("typename"),"T")],CxxId("Foo"),[],[CxxPublic([CxxFun([],CxxType("int"),CxxId("test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("42")))]),CxxFun([],CxxType("int"),CxxId("another_test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("51")))])])])])
+CxxProgram([CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Foo"),[],[CxxPublic([CxxFun([],CxxType("int"),CxxId("test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("42")))]),CxxFun([],CxxType("int"),CxxId("another_test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("51")))])])])])
Index: branches/scool-ng/tests/class/c++_ast/method_004.aterm
===================================================================
--- branches/scool-ng/tests/class/c++_ast/method_004.aterm (revision 101)
+++ branches/scool-ng/tests/class/c++_ast/method_004.aterm (revision 102)
@@ -1 +1 @@
-CxxProgram([CxxClassDecl([(CxxType("typename"),"T")],CxxId("Foo"),[],[CxxPublic([CxxFun([],CxxType("int"),CxxId("test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("42")))]),CxxFun([],CxxType("int"),CxxId("another_test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("51")))])])])])
+CxxProgram([CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Foo"),[],[CxxPublic([CxxFun([],CxxType("int"),CxxId("test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("42")))]),CxxFun([],CxxType("int"),CxxId("another_test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("51")))])])])])
Index: branches/scool-ng/tests/class/c++_ast/method_005.aterm
===================================================================
--- branches/scool-ng/tests/class/c++_ast/method_005.aterm (revision 101)
+++ branches/scool-ng/tests/class/c++_ast/method_005.aterm (revision 102)
@@ -1 +1 @@
-CxxProgram([CxxClassDecl([(CxxType("typename"),"T")],CxxId("Foo"),[],[CxxPublic([CxxFun([],CxxType("int"),CxxId("test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("42")))])]),CxxPrivate([CxxFun([],CxxType("int"),CxxId("another_test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("51")))])])])])
+CxxProgram([CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Foo"),[],[CxxPublic([CxxFun([],CxxType("int"),CxxId("test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("42")))])]),CxxPrivate([CxxFun([],CxxType("int"),CxxId("another_test"),[],[CxxExpStm(CxxKeyword("return",CxxInt("51")))])])])])
Index: branches/scool-ng/tests/class/c++_ast/empty_protected.aterm
===================================================================
--- branches/scool-ng/tests/class/c++_ast/empty_protected.aterm (revision 101)
+++ branches/scool-ng/tests/class/c++_ast/empty_protected.aterm (revision 102)
@@ -1 +1 @@
-CxxProgram([CxxClassDecl([(CxxType("typename"),"T")],CxxId("Foo"),[],[CxxProtected([])])])
+CxxProgram([CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Foo"),[],[CxxProtected([])])])
Index: branches/scool-ng/tests/class/c++_ast/member_001.aterm
===================================================================
--- branches/scool-ng/tests/class/c++_ast/member_001.aterm (revision 101)
+++ branches/scool-ng/tests/class/c++_ast/member_001.aterm (revision 102)
@@ -1 +1 @@
-CxxProgram([CxxClassDecl([(CxxType("typename"),"T")],CxxId("Point1d"),[],[CxxPublic([CxxDecl(CxxType("int"),CxxId("x"))])])])
+CxxProgram([CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Point1d"),[],[CxxPublic([CxxDecl(CxxType("int"),CxxId("x"))])])])
Index: branches/scool-ng/tests/class/c++_src/empty_public.cc
===================================================================
--- branches/scool-ng/tests/class/c++_src/empty_public.cc (revision 101)
+++ branches/scool-ng/tests/class/c++_src/empty_public.cc (revision 102)
@@ -1,4 +1,4 @@
-template < typename T >
+template < typename Exact >
class Foo
{
public:
Index: branches/scool-ng/tests/class/c++_src/empty_accessblocks.cc
===================================================================
--- branches/scool-ng/tests/class/c++_src/empty_accessblocks.cc (revision 101)
+++ branches/scool-ng/tests/class/c++_src/empty_accessblocks.cc (revision 102)
@@ -1,4 +1,4 @@
-template < typename T >
+template < typename Exact >
class Foo
{
public:
Index: branches/scool-ng/tests/class/c++_src/empty.cc
===================================================================
--- branches/scool-ng/tests/class/c++_src/empty.cc (revision 101)
+++ branches/scool-ng/tests/class/c++_src/empty.cc (revision 102)
@@ -1,4 +1,4 @@
-template < typename T >
+template < typename Exact >
class Foo
{
};
Index: branches/scool-ng/tests/class/c++_src/method_001.cc
===================================================================
--- branches/scool-ng/tests/class/c++_src/method_001.cc (revision 101)
+++ branches/scool-ng/tests/class/c++_src/method_001.cc (revision 102)
@@ -1,4 +1,4 @@
-template < typename T >
+template < typename Exact >
class Foo
{
public:
Index: branches/scool-ng/tests/class/c++_src/method_002.cc
===================================================================
--- branches/scool-ng/tests/class/c++_src/method_002.cc (revision 101)
+++ branches/scool-ng/tests/class/c++_src/method_002.cc (revision 102)
@@ -1,4 +1,4 @@
-template < typename T >
+template < typename Exact >
class Foo
{
public:
Index: branches/scool-ng/tests/class/c++_src/method_003.cc
===================================================================
--- branches/scool-ng/tests/class/c++_src/method_003.cc (revision 101)
+++ branches/scool-ng/tests/class/c++_src/method_003.cc (revision 102)
@@ -1,4 +1,4 @@
-template < typename T >
+template < typename Exact >
class Foo
{
public:
Index: branches/scool-ng/tests/class/c++_src/method_004.cc
===================================================================
--- branches/scool-ng/tests/class/c++_src/method_004.cc (revision 101)
+++ branches/scool-ng/tests/class/c++_src/method_004.cc (revision 102)
@@ -1,4 +1,4 @@
-template < typename T >
+template < typename Exact >
class Foo
{
public:
Index: branches/scool-ng/tests/class/c++_src/method_005.cc
===================================================================
--- branches/scool-ng/tests/class/c++_src/method_005.cc (revision 101)
+++ branches/scool-ng/tests/class/c++_src/method_005.cc (revision 102)
@@ -1,4 +1,4 @@
-template < typename T >
+template < typename Exact >
class Foo
{
public:
Index: branches/scool-ng/tests/class/c++_src/empty_protected.cc
===================================================================
--- branches/scool-ng/tests/class/c++_src/empty_protected.cc (revision 101)
+++ branches/scool-ng/tests/class/c++_src/empty_protected.cc (revision 102)
@@ -1,4 +1,4 @@
-template < typename T >
+template < typename Exact >
class Foo
{
protected:
Index: branches/scool-ng/tests/class/c++_src/member_001.cc
===================================================================
--- branches/scool-ng/tests/class/c++_src/member_001.cc (revision 101)
+++ branches/scool-ng/tests/class/c++_src/member_001.cc (revision 102)
@@ -1,4 +1,4 @@
-template < typename T >
+template < typename Exact >
class Point1d
{
public:
Index: branches/scool-ng/tests/class/c++_src/empty_private.cc
===================================================================
--- branches/scool-ng/tests/class/c++_src/empty_private.cc (revision 101)
+++ branches/scool-ng/tests/class/c++_src/empty_private.cc (revision 102)
@@ -1,4 +1,4 @@
-template < typename T >
+template < typename Exact >
class Foo
{
private:
Index: branches/scool-ng/tests/class/c++_src/member_002.cc
===================================================================
--- branches/scool-ng/tests/class/c++_src/member_002.cc (revision 101)
+++ branches/scool-ng/tests/class/c++_src/member_002.cc (revision 102)
@@ -1,4 +1,4 @@
-template < typename T >
+template < typename Exact >
class Point2d
{
public:
Index: branches/scool-ng/tests/class/c++_src/final_001.cc
===================================================================
--- branches/scool-ng/tests/class/c++_src/final_001.cc (revision 0)
+++ branches/scool-ng/tests/class/c++_src/final_001.cc (revision 102)
@@ -0,0 +1,3 @@
+class Student
+{
+};
--
\__/ \__/
(00) Maxime `yabo` van Noppen (00)
___) \ Epita 2009 / (___
(_____/ \_____)