Mercurial > octave
diff src/lex.l @ 1489:3e705c864019
[project @ 1995-09-28 05:38:26 by jwe]
author | jwe |
---|---|
date | Thu, 28 Sep 1995 05:38:26 +0000 |
parents | 89c587478067 |
children | 48a0b289f1be |
line wrap: on
line diff
--- a/src/lex.l Tue Sep 26 22:49:48 1995 +0000 +++ b/src/lex.l Thu Sep 28 05:38:26 1995 +0000 @@ -1092,6 +1092,25 @@ yylval.tok_val = new token (token::unwind_protect_end, l, c); token_stack.push (yylval.tok_val); } + else if (strcmp ("try", s) == 0) + { + promptflag--; + yylval.tok_val = new token (l, c); + token_stack.push (yylval.tok_val); + return TRY; + } + else if (strcmp ("catch", s) == 0) + { + yylval.tok_val = new token (l, c); + token_stack.push (yylval.tok_val); + return CATCH; + } + else if (strcmp ("end_try_catch", s) == 0) + { + end_found = 1; + yylval.tok_val = new token (token::try_catch_end, l, c); + token_stack.push (yylval.tok_val); + } else if (strcmp ("all_va_args", s) == 0) { yylval.tok_val = new token (l, c);