Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
4075c660
Commit
4075c660
authored
27 years ago
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
no change
Rev: src/language.yacc:1.65 Rev: src/lex.c:1.44
parent
1450c37d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/language.yacc
+4
-4
4 additions, 4 deletions
src/language.yacc
src/lex.c
+2
-2
2 additions, 2 deletions
src/lex.c
with
6 additions
and
6 deletions
src/language.yacc
+
4
−
4
View file @
4075c660
...
...
@@ -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.6
4
1998/03/04
16:42:45 gr
ubb
a
Exp $");
RCSID("$Id: language.yacc,v 1.6
5
1998/03/04
22:17:05 h
ubb
e
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
...
...
This diff is collapsed.
Click to expand it.
src/lex.c
+
2
−
2
View file @
4075c660
...
...
@@ -4,7 +4,7 @@
||| See the files COPYING and DISCLAIMER for more information.
\*/
#include
"global.h"
RCSID
(
"$Id: lex.c,v 1.4
3
1998/0
2
/0
1 04:01:36
hubbe Exp $"
);
RCSID
(
"$Id: lex.c,v 1.4
4
1998/0
3
/0
4 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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment