Skip to content
Snippets Groups Projects
Commit 4075c660 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

no change

Rev: src/language.yacc:1.65
Rev: src/lex.c:1.44
parent 1450c37d
Branches
Tags
No related merge requests found
......@@ -4,7 +4,6 @@
||| See the files COPYING and DISCLAIMER for more information.
\*/
%pure_parser
/*
* These values are used by the stack machine, and can not be directly
* called from Pike.
......@@ -162,7 +161,7 @@
/* This is the grammar definition of Pike. */
#include "global.h"
RCSID("$Id: language.yacc,v 1.64 1998/03/04 16:42:45 grubba Exp $");
RCSID("$Id: language.yacc,v 1.65 1998/03/04 22:17:05 hubbe Exp $");
#ifdef HAVE_MEMORY_H
#include <memory.h>
#endif
......@@ -311,6 +310,7 @@ int yylex(YYSTYPE *yylval);
%type <n> expr2
%type <n> expr3 expr0
%type <n> expr4
%type <n> expr5
%type <n> expr_list
%type <n> expr_list2
%type <n> for
......@@ -1249,9 +1249,9 @@ expr4: string
}
| '(' comma_expr2 ')' { $$=$2; }
| '(' '{' expr_list '}' ')'
{ $$=mkefuncallnode("aggregate",$3); }
{ $$=mkefuncallnode("aggregate",$2); }
| '(' '[' m_expr_list ']' ')'
{ $$=mkefuncallnode("aggregate_mapping",$3); };
{ $$=mkefuncallnode("aggregate_mapping",$2); };
| F_MULTISET_START expr_list F_MULTISET_END
{ $$=mkefuncallnode("aggregate_multiset",$2); }
| expr4 F_ARROW F_IDENTIFIER
......
......@@ -4,7 +4,7 @@
||| See the files COPYING and DISCLAIMER for more information.
\*/
#include "global.h"
RCSID("$Id: lex.c,v 1.43 1998/02/01 04:01:36 hubbe Exp $");
RCSID("$Id: lex.c,v 1.44 1998/03/04 22:15:40 hubbe Exp $");
#include "language.h"
#include "array.h"
#include "lex.h"
......@@ -656,13 +656,13 @@ static int yylex2(YYSTYPE *yylval)
if(GOBBLE('<')) return F_MULTISET_START;
return '(';
case ']':
case '?':
case ',':
case '~':
case '@':
case ')':
case '[':
case ']':
case '{':
case ';':
case '}': return c;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment