Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
cb7da2cc
...
cb7da2ccc3137cdeeae0152f69a59c22adca7e72
authored
2005-03-08 22:20:40 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fixed precedences of ',' and '+'
1 parent
26c37440
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
mimeview/mimetypes.y
mimeview/mimetypes.y
View file @
cb7da2c
...
...
@@ -109,6 +109,9 @@ static list_t rule_list;
%token <string> STRING
%token EOL BOGUS
%left ','
%left '+'
%type <string> string arg type
%type <list> arglist
%type <node> function stmt rule
...
...
@@ -159,15 +162,15 @@ type : IDENT '/' IDENT
;
rule : stmt
| rule
stmt
| rule
rule %prec ','
{
$$ = make_binary_node (L_OR, $1, $2);
}
| rule ','
stmt
| rule ','
rule
{
$$ = make_binary_node (L_OR, $1, $3);
}
| rule '+'
stmt
| rule '+'
rule
{
$$ = make_binary_node (L_AND, $1, $3);
}
...
...
Please
register
or
sign in
to post a comment