Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
convert_calike2xml.cpp
Go to the documentation of this file.
1
/*
2
* Vega Strike
3
* Copyright (C) 2001-2002 Daniel Horn
4
*
5
* http://vegastrike.sourceforge.net/
6
*
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 2
10
* of the License, or (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
*/
21
22
/*
23
c_alike scripting written by Alexander Rawass <alexannika@users.sourceforge.net>
24
*/
25
26
#include <stdio.h>
27
28
#include <string>
29
30
extern
std::string
module_string
;
31
32
#include <iostream>
33
extern
void
yyparse
();
34
35
void
main
(
int
argc,
char
**argv)
36
{
37
extern
FILE *
yyin
;
38
if
(argc<=1){
39
yyin=
fopen
(
"test.c"
,
"r"
);
40
}
41
else
{
42
// yyin=fopen(argv[1],"r");
43
yyin=stdin;
44
}
45
46
yyparse
();
47
48
std::cout <<
module_string
;
49
}
50
src
cmd
script
c_alike
convert_calike2xml.cpp
Generated on Fri May 29 2015 23:07:15 for Vegastrike 0.5.1 rc1 by
1.8.4