summaryrefslogtreecommitdiff
path: root/colm/synthesis.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2013-02-23 22:51:38 -0500
committerAdrian Thurston <thurston@complang.org>2013-02-23 22:51:38 -0500
commitaeef465c0e89d5b689d349370329baef4c67b7eb (patch)
treec868f173f39aecfee4b5804f8970fd363f0ed2a4 /colm/synthesis.cc
parente6acde465c0cdaed67cbf463522faa093485d50b (diff)
downloadcolm-aeef465c0e89d5b689d349370329baef4c67b7eb.tar.gz
renamed TokenDef to TokenInstance
Will add back token def as the thing the user declares. Instances go into regions and a def can cause more than one instance to be created.
Diffstat (limited to 'colm/synthesis.cc')
-rw-r--r--colm/synthesis.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/colm/synthesis.cc b/colm/synthesis.cc
index 4707e52e..5ab22b3a 100644
--- a/colm/synthesis.cc
+++ b/colm/synthesis.cc
@@ -2714,12 +2714,12 @@ void Compiler::compileTranslateBlock( LangEl *langEl )
code.append( IN_INIT_LOCALS );
code.appendHalf( 0 );
- if ( langEl->tokenDef->reCaptureVect.length() > 0 ) {
+ if ( langEl->tokenInstance->reCaptureVect.length() > 0 ) {
code.append( IN_INIT_CAPTURES );
- code.append( langEl->tokenDef->reCaptureVect.length() );
+ code.append( langEl->tokenInstance->reCaptureVect.length() );
ObjFieldList::Iter f = *curLocalFrame->objFieldList;
- for ( int i = 0; i < langEl->tokenDef->reCaptureVect.length(); i++, f++ )
+ for ( int i = 0; i < langEl->tokenInstance->reCaptureVect.length(); i++, f++ )
curLocalFrame->referenceField( this, f->value );
}