changeset 3988:9a73d0e7e737

[project @ 2002-07-12 19:25:04 by jwe]
author jwe
date Fri, 12 Jul 2002 19:25:04 +0000
parents 258c1d15ad78
children bdde4f33221e
files src/ChangeLog src/lex.l
diffstat 2 files changed, 17 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
+2002-07-12  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* lex.l (@): Handle new token.
+	* parse.y (constant): Accept function handle syntax.
+	(make_constant): Create function handles here.
+
 2002-07-11  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* defun.cc (check_version): Improve error message.
--- a/src/lex.l
+++ b/src/lex.l
@@ -689,6 +689,14 @@
     TOK_RETURN ('.');
   }
 
+"@" {
+    current_input_column++;
+    lexer_flags.cant_be_identifier = false;
+    lexer_flags.quote_is_transpose = false;
+    lexer_flags.convert_spaces_to_comma = false;
+    return '@';
+  }
+
 "+="	{ BIN_OP_RETURN (ADD_EQ, false); }
 "-="	{ BIN_OP_RETURN (SUB_EQ, false); }
 "*="	{ BIN_OP_RETURN (MUL_EQ, false); }
@@ -1728,9 +1736,9 @@
 
   assert (nread == 1);
 
-  lexer_flags.quote_is_transpose = 1;
-  lexer_flags.cant_be_identifier = 1;
-  lexer_flags.convert_spaces_to_comma = 1;
+  lexer_flags.quote_is_transpose = true;
+  lexer_flags.cant_be_identifier = true;
+  lexer_flags.convert_spaces_to_comma = true;
 
   if (lexer_flags.plotting && ! lexer_flags.in_plot_range)
     lexer_flags.past_plot_range = true;