diff src/lex.h @ 1060:8c1a25cdfa81

[project @ 1995-01-23 00:10:03 by jwe]
author jwe
date Mon, 23 Jan 1995 00:10:03 +0000
parents dfe01093f657
children a08b7d48e3bc
line wrap: on
line diff
--- a/src/lex.h
+++ b/src/lex.h
@@ -57,6 +57,15 @@
     } \
   while (0)
 
+#define TOK_PUSH_AND_RETURN(name,tok) \
+  do \
+    { \
+      yylval.tok_val = new token (input_line_number, current_input_column); \
+      token_stack.push (yylval.tok_val); \
+      TOK_RETURN (tok); \
+    } \
+  while (0)
+
 #define BIN_OP_RETURN(tok,convert) \
   do \
     { \