Mercurial > hg > octave-lyh
changeset 2819:ae3cce876a8e
[project @ 1997-03-17 23:27:45 by jwe]
author | jwe |
---|---|
date | Mon, 17 Mar 1997 23:27:45 +0000 |
parents | cac5a66e48c6 |
children | eb2222c7f4cf |
files | src/ChangeLog src/lex.l |
diffstat | 2 files changed, 22 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,12 @@ +Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> + + * lex.l (handle_identifier): When handling indirect_ref, set + lexer_flags.quote_is_transpose to 1 so that a.b' to work as + expected. + + * parse.y (param_list_beg, param_list_end): New nonterminals. + (param_list, param_list1): Use them. + Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> * Makefile.in (install-strip): New target.
--- a/src/lex.l +++ b/src/lex.l @@ -1704,7 +1704,19 @@ if (lexer_flags.looking_at_indirect_ref) { maybe_unput_comma (spc_gobbled); - TOK_PUSH_AND_RETURN (tok, TEXT_ID); + + yylval.tok_val = new token (tok, input_line_number, + current_input_column); + + token_stack.push (yylval.tok_val); + + lexer_flags.cant_be_identifier = 0; + lexer_flags.quote_is_transpose = 1; + lexer_flags.convert_spaces_to_comma = 1; + + current_input_column += yyleng; + + return TEXT_ID; } // If we have a regular keyword, or a plot STYLE, return it.