Commit 33594358 authored by Erwin Janssen's avatar Erwin Janssen

Windows: expr now building (without Bison)

Files generated by Bison are stored in the Windows folder.
To be fixed later.
parent 1d53f259
......@@ -14,6 +14,7 @@
<ProjectGuid>{5A6981A7-A652-4187-B636-3E5120C7CE52}</ProjectGuid>
<RootNamespace>expr</RootNamespace>
<Keyword>Win32Proj</Keyword>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
......@@ -38,41 +39,43 @@
<_ProjectFileVersion>14.0.25123.0</_ProjectFileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>Debug\</OutDir>
<OutDir>$(SolutionDir)Debug\Graphviz\bin\</OutDir>
<IntDir>Debug\</IntDir>
<CodeAnalysisRuleSet>C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\Rule Sets\NativeRecommendedRules.ruleset</CodeAnalysisRuleSet>
<RunCodeAnalysis>true</RunCodeAnalysis>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>Release\</OutDir>
<OutDir>$(SolutionDir)Graphviz\bin\</OutDir>
<IntDir>Release\</IntDir>
<CodeAnalysisRuleSet>C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\Rule Sets\NativeRecommendedRules.ruleset</CodeAnalysisRuleSet>
<RunCodeAnalysis>true</RunCodeAnalysis>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir)windows\dependencies\GTK2\lib\glib-2.0\include;$(SolutionDir)windows\dependencies\GTK2\include\glib-2.0;$(SolutionDir)windows\dependencies\GTK2\include\pango-1.0\;$(SolutionDir)windows\dependencies\GTK2\include\cairo;$(SolutionDir)windows\dependencies\GTK2\include\freetype2;$(SolutionDir)windows\dependencies\GTK2\include;$(SolutionDir)/libltdl;$(SolutionDir)/lib/neatogen;$(SolutionDir)/lib/agutil;$(SolutionDir)/windows/lib/cdt;$(SolutionDir)/;$(SolutionDir)/lib/graph;$(SolutionDir)/lib/vpsc;$(SolutionDir)/lib/vmalloc;$(SolutionDir)/lib/twopigen;$(SolutionDir)/lib/sparse;$(SolutionDir)/lib/sfio;$(SolutionDir)/lib/sfpdpgen;$(SolutionDir)/lib/rbtree;$(SolutionDir)/lib/pathplan;$(SolutionDir)/lib/patchwork;$(SolutionDir)/lib/pack;$(SolutionDir)/lib/ortho;$(SolutionDir)/lib/inkpot;$(SolutionDir)/lib/ingraphs;$(SolutionDir)/lib/gd;$(SolutionDir)/lib/filter;$(SolutionDir)/lib/fdpgen;$(SolutionDir)/lib/expr;$(SolutionDir)/lib/dotgen;$(SolutionDir)/lib/circogen;$(SolutionDir)/lib/ast;$(SolutionDir)/lib/agraph;$(SolutionDir)/lib/common;$(SolutionDir)/lib/gvc;$(SolutionDir)/lib/cdt;$(SolutionDir)/lib/cgraph;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir)/lib/neatogen;$(SolutionDir)/lib/agutil;$(SolutionDir)/;$(SolutionDir)/lib/graph;$(SolutionDir)/lib/vpsc;$(SolutionDir)/lib/vmalloc;$(SolutionDir)/lib/twopigen;$(SolutionDir)/lib/sparse;$(SolutionDir)/lib/sfio;$(SolutionDir)/lib/sfpdpgen;$(SolutionDir)/lib/rbtree;$(SolutionDir)/lib/pathplan;$(SolutionDir)/lib/patchwork;$(SolutionDir)/lib/pack;$(SolutionDir)/lib/ortho;$(SolutionDir)/lib/inkpot;$(SolutionDir)/lib/ingraphs;$(SolutionDir)/lib/gd;$(SolutionDir)/lib/filter;$(SolutionDir)/lib/fdpgen;$(SolutionDir)/lib/expr;$(SolutionDir)/lib/dotgen;$(SolutionDir)/lib/circogen;$(SolutionDir)/lib/ast;$(SolutionDir)/lib/agraph;$(SolutionDir)/lib/common;$(SolutionDir)/lib/gvc;$(SolutionDir)/lib/cdt;$(SolutionDir)/lib/cgraph;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;HAVE_CONFIG_H;WIN32_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<PrecompiledHeader />
<WarningLevel>TurnOffAllWarnings</WarningLevel>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<EnablePREfast>true</EnablePREfast>
</ClCompile>
<Lib>
<OutputFile>c:/graphviz-ms/bin/$(ProjectName).lib</OutputFile>
</Lib>
<Lib />
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir)windows\dependencies\GTK2\lib\glib-2.0\include;$(SolutionDir)windows\dependencies\GTK2\include\glib-2.0;$(SolutionDir)windows\dependencies\GTK2\include\pango-1.0\;$(SolutionDir)windows\dependencies\GTK2\include\cairo;$(SolutionDir)windows\dependencies\GTK2\include\freetype2;$(SolutionDir)windows\dependencies\GTK2\include;$(SolutionDir)/libltdl;$(SolutionDir)/lib/neatogen;$(SolutionDir)/lib/agutil;$(SolutionDir)/windows/lib/cdt;$(SolutionDir)/;$(SolutionDir)/lib/graph;$(SolutionDir)/lib/vpsc;$(SolutionDir)/lib/vmalloc;$(SolutionDir)/lib/twopigen;$(SolutionDir)/lib/sparse;$(SolutionDir)/lib/sfio;$(SolutionDir)/lib/sfpdpgen;$(SolutionDir)/lib/rbtree;$(SolutionDir)/lib/pathplan;$(SolutionDir)/lib/patchwork;$(SolutionDir)/lib/pack;$(SolutionDir)/lib/ortho;$(SolutionDir)/lib/inkpot;$(SolutionDir)/lib/ingraphs;$(SolutionDir)/lib/gd;$(SolutionDir)/lib/filter;$(SolutionDir)/lib/fdpgen;$(SolutionDir)/lib/expr;$(SolutionDir)/lib/dotgen;$(SolutionDir)/lib/circogen;$(SolutionDir)/lib/ast;$(SolutionDir)/lib/agraph;$(SolutionDir)/lib/common;$(SolutionDir)/lib/gvc;$(SolutionDir)/lib/cdt;$(SolutionDir)/lib/cgraph;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir)/lib/neatogen;$(SolutionDir)/lib/agutil;$(SolutionDir)/;$(SolutionDir)/lib/graph;$(SolutionDir)/lib/vpsc;$(SolutionDir)/lib/vmalloc;$(SolutionDir)/lib/twopigen;$(SolutionDir)/lib/sparse;$(SolutionDir)/lib/sfio;$(SolutionDir)/lib/sfpdpgen;$(SolutionDir)/lib/rbtree;$(SolutionDir)/lib/pathplan;$(SolutionDir)/lib/patchwork;$(SolutionDir)/lib/pack;$(SolutionDir)/lib/ortho;$(SolutionDir)/lib/inkpot;$(SolutionDir)/lib/ingraphs;$(SolutionDir)/lib/gd;$(SolutionDir)/lib/filter;$(SolutionDir)/lib/fdpgen;$(SolutionDir)/lib/expr;$(SolutionDir)/lib/dotgen;$(SolutionDir)/lib/circogen;$(SolutionDir)/lib/ast;$(SolutionDir)/lib/agraph;$(SolutionDir)/lib/common;$(SolutionDir)/lib/gvc;$(SolutionDir)/lib/cdt;$(SolutionDir)/lib/cgraph;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;HAVE_CONFIG_H;WIN32_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<PrecompiledHeader />
<WarningLevel>TurnOffAllWarnings</WarningLevel>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<EnablePREfast>true</EnablePREfast>
</ClCompile>
<Lib>
<OutputFile>c:/graphviz-ms/bin/$(ProjectName).lib</OutputFile>
</Lib>
<Lib />
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="exgram.h" />
......@@ -81,6 +84,7 @@
<ClInclude Include="expr.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\windows\exparse.c" />
<ClCompile Include="excc.c" />
<ClCompile Include="excontext.c" />
<ClCompile Include="exdata.c" />
......@@ -90,7 +94,6 @@
<ClCompile Include="exlexname.c" />
<ClCompile Include="exnospace.c" />
<ClCompile Include="exopen.c" />
<ClCompile Include="exparse.c" />
<ClCompile Include="exrewind.c" />
<ClCompile Include="exstash.c" />
<ClCompile Include="extoken.c" />
......
......@@ -56,9 +56,6 @@
<ClCompile Include="exopen.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="exparse.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="exrewind.c">
<Filter>Source Files</Filter>
</ClCompile>
......@@ -74,5 +71,8 @@
<ClCompile Include="exzero.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\windows\exparse.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
static const char* exop[] = {
"MINTOKEN",
"INTEGER",
"UNSIGNED",
"CHARACTER",
"FLOATING",
"STRING",
"VOIDTYPE",
"STATIC",
"ADDRESS",
"ARRAY",
"BREAK",
"CALL",
"CASE",
"CONSTANT",
"CONTINUE",
"DECLARE",
"DEFAULT",
"DYNAMIC",
"ELSE",
"EXIT",
"FOR",
"FUNCTION",
"GSUB",
"ITERATE",
"ITERATER",
"ID",
"IF",
"LABEL",
"MEMBER",
"NAME",
"POS",
"PRAGMA",
"PRE",
"PRINT",
"PRINTF",
"PROCEDURE",
"QUERY",
"RAND",
"RETURN",
"SCANF",
"SPLIT",
"SPRINTF",
"SRAND",
"SSCANF",
"SUB",
"SUBSTR",
"SWITCH",
"TOKENS",
"UNSET",
"WHILE",
"F2I",
"F2S",
"I2F",
"I2S",
"S2B",
"S2F",
"S2I",
"F2X",
"I2X",
"S2X",
"X2F",
"X2I",
"X2S",
"X2X",
"XPRINT",
"OR",
"AND",
"EQ",
"NE",
"LE",
"GE",
"LS",
"RS",
"IN_OP",
"UNARY",
"INC",
"DEC",
"CAST",
};
#ifndef _EXPARSE_H
#define _EXPARSE_H
/* A Bison parser, made by GNU Bison 3.0.4. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
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 3 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, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
#ifndef EX_EX_Y_TAB_H_INCLUDED
# define EX_EX_Y_TAB_H_INCLUDED
/* Debug traces. */
#ifndef EXDEBUG
# define EXDEBUG 1
#endif
#if EXDEBUG
extern int exdebug;
#endif
/* Token type. */
#ifndef EXTOKENTYPE
# define EXTOKENTYPE
enum extokentype
{
MINTOKEN = 258,
INTEGER = 259,
UNSIGNED = 260,
CHARACTER = 261,
FLOATING = 262,
STRING = 263,
VOIDTYPE = 264,
STATIC = 265,
ADDRESS = 266,
ARRAY = 267,
BREAK = 268,
CALL = 269,
CASE = 270,
CONSTANT = 271,
CONTINUE = 272,
DECLARE = 273,
DEFAULT = 274,
DYNAMIC = 275,
ELSE = 276,
EXIT = 277,
FOR = 278,
FUNCTION = 279,
GSUB = 280,
ITERATE = 281,
ITERATER = 282,
ID = 283,
IF = 284,
LABEL = 285,
MEMBER = 286,
NAME = 287,
POS = 288,
PRAGMA = 289,
PRE = 290,
PRINT = 291,
PRINTF = 292,
PROCEDURE = 293,
QUERY = 294,
RAND = 295,
RETURN = 296,
SCANF = 297,
SPLIT = 298,
SPRINTF = 299,
SRAND = 300,
SSCANF = 301,
SUB = 302,
SUBSTR = 303,
SWITCH = 304,
TOKENS = 305,
UNSET = 306,
WHILE = 307,
F2I = 308,
F2S = 309,
I2F = 310,
I2S = 311,
S2B = 312,
S2F = 313,
S2I = 314,
F2X = 315,
I2X = 316,
S2X = 317,
X2F = 318,
X2I = 319,
X2S = 320,
X2X = 321,
XPRINT = 322,
OR = 323,
AND = 324,
EQ = 325,
NE = 326,
LE = 327,
GE = 328,
LS = 329,
RS = 330,
IN_OP = 331,
UNARY = 332,
INC = 333,
DEC = 334,
CAST = 335,
MAXTOKEN = 336
};
#endif
/* Tokens. */
#define MINTOKEN 258
#define INTEGER 259
#define UNSIGNED 260
#define CHARACTER 261
#define FLOATING 262
#define STRING 263
#define VOIDTYPE 264
#define STATIC 265
#define ADDRESS 266
#define ARRAY 267
#define BREAK 268
#define CALL 269
#define CASE 270
#define CONSTANT 271
#define CONTINUE 272
#define DECLARE 273
#define DEFAULT 274
#define DYNAMIC 275
#define ELSE 276
#define EXIT 277
#define FOR 278
#define FUNCTION 279
#define GSUB 280
#define ITERATE 281
#define ITERATER 282
#define ID 283
#define IF 284
#define LABEL 285
#define MEMBER 286
#define NAME 287
#define POS 288
#define PRAGMA 289
#define PRE 290
#define PRINT 291
#define PRINTF 292
#define PROCEDURE 293
#define QUERY 294
#define RAND 295
#define RETURN 296
#define SCANF 297
#define SPLIT 298
#define SPRINTF 299
#define SRAND 300
#define SSCANF 301
#define SUB 302
#define SUBSTR 303
#define SWITCH 304
#define TOKENS 305
#define UNSET 306
#define WHILE 307
#define F2I 308
#define F2S 309
#define I2F 310
#define I2S 311
#define S2B 312
#define S2F 313
#define S2I 314
#define F2X 315
#define I2X 316
#define S2X 317
#define X2F 318
#define X2I 319
#define X2S 320
#define X2X 321
#define XPRINT 322
#define OR 323
#define AND 324
#define EQ 325
#define NE 326
#define LE 327
#define GE 328
#define LS 329
#define RS 330
#define IN_OP 331
#define UNARY 332
#define INC 333
#define DEC 334
#define CAST 335
#define MAXTOKEN 336
/* Value type. */
#if ! defined EXSTYPE && ! defined EXSTYPE_IS_DECLARED
union EXSTYPE
{
#line 39 "../../lib/expr/exparse.y" /* yacc.c:1909 */
struct Exnode_s*expr;
double floating;
struct Exref_s* reference;
struct Exid_s* id;
Sflong_t integer;
int op;
char* string;
void* user;
struct Exbuf_s* buffer;
#line 228 "y.tab.h" /* yacc.c:1909 */
};
typedef union EXSTYPE EXSTYPE;
# define EXSTYPE_IS_TRIVIAL 1
# define EXSTYPE_IS_DECLARED 1
#endif
extern EXSTYPE exlval;
int exparse (void);
#endif /* !EX_EX_Y_TAB_H_INCLUDED */
#endif /* _EXPARSE_H */
Markdown is supported
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