migrated some primitives from Processor to System.
Fixed a bug in manipulating moo->sem_io_wait_count. Experimenting to add a shortcut exception handling syntax
This commit is contained in:
@ -1682,8 +1682,26 @@ retry:
|
||||
break;
|
||||
|
||||
case '{': /* extension */
|
||||
#if 0
|
||||
SET_TOKEN_TYPE (moo, MOO_IOTOK_LBRACE);
|
||||
goto single_char_token;
|
||||
#else
|
||||
SET_TOKEN_TYPE (moo, MOO_IOTOK_RETURN);
|
||||
ADD_TOKEN_CHAR(moo, c);
|
||||
GET_CHAR_TO (moo, c);
|
||||
|
||||
if (c == '@')
|
||||
{
|
||||
/* {@ */
|
||||
TOKEN_TYPE(moo) = MOO_IOTOK_DEH_BLOCK; /* default exception handling block */
|
||||
ADD_TOKEN_CHAR (moo, c);
|
||||
}
|
||||
else
|
||||
{
|
||||
unget_char (moo, &moo->c->lxc);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
case '}': /* extension */
|
||||
SET_TOKEN_TYPE (moo, MOO_IOTOK_RBRACE);
|
||||
goto single_char_token;
|
||||
|
Reference in New Issue
Block a user