[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: treecc gen_php.c,NONE,1.1 ChangeLog,1.66,1.67
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: treecc gen_php.c,NONE,1.1 ChangeLog,1.66,1.67 Makefile.am,1.4,1.5 gen.c,1.3,1.4 gen.h,1.3,1.4 info.h,1.7,1.8 options.c,1.5,1.6 |
Date: |
Fri, 10 Jan 2003 17:13:40 -0500 |
Update of /cvsroot/dotgnu-pnet/treecc
In directory subversions:/tmp/cvs-serv711
Modified Files:
ChangeLog Makefile.am gen.c gen.h info.h options.c
Added Files:
gen_php.c
Log Message:
Add support for PHP output.
--- NEW FILE ---
/*
* gen_cs.c - Generate C# source code from "treecc" input files.
*
* Copyright (C) 2001 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
[...1327 lines suppressed...]
/* Generate the contents of the source stream */
TreeCCNodeVisitAll(context, DeclareTypeDefs);
if(context->commonSource)
{
ImplementStateType(context, context->commonSource);
}
else
{
ImplementStateType(context, context->sourceStream);
}
TreeCCNodeVisitAll(context, BuildTypeDecls);
TreeCCGenerateNonVirtuals(context, &TreeCCNonVirtualFuncsPHP);
/* Write all stream footers */
WritePHPFooters(context);
}
#ifdef __cplusplus
};
#endif
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/treecc/ChangeLog,v
retrieving revision 1.66
retrieving revision 1.67
diff -C2 -r1.66 -r1.67
*** ChangeLog 9 Jan 2003 09:18:47 -0000 1.66
--- ChangeLog 10 Jan 2003 22:13:37 -0000 1.67
***************
*** 1,3 ****
--- 1,8 ----
+ 2003-01-11 Alan Knowles <address@hidden>
+
+ * Makefile.am, gen.c, gen.h, gen_php.c, info.h, options.c:
+ add support for PHP output.
+
2003-01-09 Rhys Weatherley <address@hidden>
Index: Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-pnet/treecc/Makefile.am,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Makefile.am 15 Dec 2002 04:20:59 -0000 1.4
--- Makefile.am 10 Jan 2003 22:13:37 -0000 1.5
***************
*** 15,18 ****
--- 15,19 ----
gen_ruby.c \
gen_java.c \
+ gen_php.c \
input.c \
literal.c \
Index: gen.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/treecc/gen.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** gen.c 2 Nov 2002 04:38:21 -0000 1.3
--- gen.c 10 Jan 2003 22:13:37 -0000 1.4
***************
*** 63,66 ****
--- 63,72 ----
break;
+ case TREECC_LANG_PHP:
+ {
+ TreeCCGeneratePHP(context);
+ }
+ break;
+
}
}
Index: gen.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/treecc/gen.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** gen.h 2 Nov 2002 04:38:21 -0000 1.3
--- gen.h 10 Jan 2003 22:13:37 -0000 1.4
***************
*** 39,42 ****
--- 39,43 ----
void TreeCCGenerateCSharp(TreeCCContext *context);
void TreeCCGenerateRuby(TreeCCContext *context);
+ void TreeCCGeneratePHP(TreeCCContext *context);
/*
Index: info.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/treecc/info.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** info.h 30 Dec 2002 21:54:14 -0000 1.7
--- info.h 10 Jan 2003 22:13:37 -0000 1.8
***************
*** 75,78 ****
--- 75,79 ----
#define TREECC_LANG_CSHARP 3
#define TREECC_LANG_RUBY 4
+ #define TREECC_LANG_PHP 5
/*
Index: options.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/treecc/options.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** options.c 30 Dec 2002 21:54:14 -0000 1.5
--- options.c 10 Jan 2003 22:13:37 -0000 1.6
***************
*** 256,259 ****
--- 256,263 ----
context->language = TREECC_LANG_RUBY;
}
+ else if(!strcmp(value, "php") || !strcmp(value, "PHP"))
+ {
+ context->language = TREECC_LANG_PHP;
+ }
else
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: treecc gen_php.c,NONE,1.1 ChangeLog,1.66,1.67 Makefile.am,1.4,1.5 gen.c,1.3,1.4 gen.h,1.3,1.4 info.h,1.7,1.8 options.c,1.5,1.6,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/System/ComponentModel EnumConverter.cs,1.3,1.4
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private DateTimeFormatter.cs,1.4,1.5 NumberParser.cs,1.5,1.6
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/System/ComponentModel EnumConverter.cs,1.3,1.4
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private DateTimeFormatter.cs,1.4,1.5 NumberParser.cs,1.5,1.6
- Index(es):