diff options
author | Adrian Thurston <thurston@complang.org> | 2012-08-01 13:18:02 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2012-08-01 13:18:02 +0000 |
commit | 6bc9727d3ac615090bf5086cae43d225d3fb552f (patch) | |
tree | 695c7894d54b8b9de40e4cf347063e99238b7b0a /src/program.h | |
parent | 39c9b4a6f1014cb30ee535d4f534d0dcc4fe5905 (diff) | |
download | colm-6bc9727d3ac615090bf5086cae43d225d3fb552f.tar.gz |
revert "moved 'colm' dir to 'src'"
Colm includes a library component with headers installed to a private dir
inside include: $prefix/include/colm. We need our headers to reference each
other using this colm prefix. This needs to be true for compiling our source
and also for compiling external programs. It is conventient to have all the
source in a directory called colm and then to use -I <source-root> when
building colm. We use $prefix/include when building external programs.
This reverts commit 247904a84430b8c9151fa6afb68f01b60afb92c9.
Diffstat (limited to 'src/program.h')
-rw-r--r-- | src/program.h | 128 |
1 files changed, 0 insertions, 128 deletions
diff --git a/src/program.h b/src/program.h deleted file mode 100644 index 9a50274d..00000000 --- a/src/program.h +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright 2007-2012 Adrian Thurston <thurston@complang.org> - */ - -/* This file is part of Colm. - * - * Colm 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. - * - * Colm 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 Colm; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#ifndef __COLM_PROGRAM_H -#define __COLM_PROGRAM_H - -#include <pdarun.h> - -typedef struct ColmRuntimeData -{ - LangElInfo *lelInfo; - long numLangEls; - - ProdInfo *prodInfo; - long numProds; - - RegionInfo *regionInfo; - long numRegions; - - Code *rootCode; - long rootCodeLen; - long rootFrameId; - - FrameInfo *frameInfo; - long numFrames; - - FunctionInfo *functionInfo; - long numFunctions; - - PatReplInfo *patReplInfo; - long numPatterns; - - PatReplNode *patReplNodes; - long numPatternNodes; - - GenericInfo *genericInfo; - long numGenerics; - - long argvGenericId; - - const char **litdata; - long *litlen; - Head **literals; - long numLiterals; - - CaptureAttr *captureAttr; - long numCapturedAttr; - - FsmTables *fsmTables; - PdaTables *pdaTables; - int *startStates; - int *eofLelIds; - int *parserLelIds; - long numParsers; - - long globalSize; - - long firstNonTermId; - - long integerId; - long stringId; - long anyId; - long eofId; - long noTokenId; -} RuntimeData; - - -typedef struct ColmProgram -{ - int argc; - const char **argv; - - unsigned char ctxDepParsing; - RuntimeData *rtd; - Tree *global; - int induceExit; - int exitStatus; - - PoolAlloc kidPool; - PoolAlloc treePool; - PoolAlloc parseTreePool; - PoolAlloc listElPool; - PoolAlloc mapElPool; - PoolAlloc headPool; - PoolAlloc locationPool; - - Tree *trueVal; - Tree *falseVal; - - Kid *heap; - - Tree **se; - - Stream *stdinVal; - Stream *stdoutVal; - Stream *stderrVal; - - RunBuf *allocRunBuf; - - Tree **vm_stack; - Tree **vm_root; - - /* Returned from the main line. Should have exports instead. */ - Tree *returnVal; - - /* The most recent parse error. Should be returned from the parsing function. */ - Tree *lastParseError; -} Program; - -#endif |