Add slices and prepare for more try/except stuff.

This commit is contained in:
Darryl Pogue
2011-01-04 13:52:15 -08:00
parent 9924eb9d0d
commit 3be27b5c96
4 changed files with 102 additions and 23 deletions

View File

@@ -78,7 +78,8 @@ void ASTBlock::removeFirst()
const char* ASTBlock::type_str() const
{
static const char* s_type_strings[] = {
"", "if", "else", "elif", "try", "except", "finally", "while", "for"
"", "if", "else", "elif", "try", "EXCEPT CONTAINER", "except",
"finally", "while", "for"
};
return s_type_strings[blktype()];
}