summaryrefslogtreecommitdiff
path: root/src/pdarun.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-05-10 13:30:31 -0400
committerAdrian Thurston <thurston@complang.org>2015-05-10 13:30:31 -0400
commitbb0f6a3e4a9117674eb91eb1226bb1b692319c4b (patch)
treed30dec1583250478e177c2dcb9d2c31f401041c0 /src/pdarun.h
parentdf14c3f2fdc9abee0c922f456446264460aefd06 (diff)
downloadcolm-bb0f6a3e4a9117674eb91eb1226bb1b692319c4b.tar.gz
cleanup of the coroutine code
Diffstat (limited to 'src/pdarun.h')
-rw-r--r--src/pdarun.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/pdarun.h b/src/pdarun.h
index 63a5f04d..596f75a3 100644
--- a/src/pdarun.h
+++ b/src/pdarun.h
@@ -428,14 +428,14 @@ void pdaRunMatch( PdaRun *pdaRun, Kid *tree, Kid *pattern );
int pdaRunGetNextRegion( PdaRun *pdaRun, int offset );
int pdaRunGetNextPreRegion( PdaRun *pdaRun );
-#define PcrStart 1
-#define PcrDone 2
-#define PcrReduction 3
-#define PcrGeneration 4
-#define PcrPreEof 5
-#define PcrReverse 6
-
-Head *streamPull( struct colm_program *prg, struct colm_tree **sp,
+#define PCR_START 1
+#define PCR_DONE 2
+#define PCR_REDUCTION 3
+#define PCR_GENERATION 4
+#define PCR_PRE_EOF 5
+#define PCR_REVERSE 6
+
+Head *colm_stream_pull( struct colm_program *prg, struct colm_tree **sp,
PdaRun *pdaRun, StreamImpl *is, long length );
Head *stringAllocPointer( struct colm_program *prg, const char *data, long length );
@@ -444,7 +444,8 @@ void streamPushTree( StreamImpl *inputStream, Tree *tree, int ignore );
void streamPushStream( StreamImpl *inputStream, Tree *tree );
void undoStreamPush( struct colm_program *prg, Tree **sp, StreamImpl *inputStream, long length );
void undoStreamAppend( struct colm_program *prg, Tree **sp, StreamImpl *inputStream, struct colm_tree *tree, long length );
-Kid *makeTokenWithData( struct colm_program *prg, PdaRun *pdaRun, FsmRun *fsmRun,
+
+Kid *make_token_with_data( struct colm_program *prg, PdaRun *pdaRun,
StreamImpl *inputStream, int id, Head *tokdata );
void pushBinding( PdaRun *pdaRun, ParseTree *parseTree );