Skip to content

Commit

Permalink
Allow services with just parameters and exposed
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Dec 12, 2014
1 parent f59ed3a commit f12c441
Show file tree
Hide file tree
Showing 5 changed files with 211 additions and 415 deletions.
5 changes: 3 additions & 2 deletions conf/inq/format.bnf
Expand Up @@ -54,6 +54,7 @@ check inspeqtor
Check
: "check" "service" name ParameterList RuleList << ast.NewProcessCheck($2, $3, nil, $4), nil >>
| "check" "service" name ParameterList ExposedList RuleList << ast.NewProcessCheck($2, $3, $4, $5), nil >>
| "check" "service" name ParameterList ExposedList << ast.NewProcessCheck($2, $3, $4, nil), nil >>
| "check" "service" name ExposedList << ast.NewProcessCheck($2, nil, $3, nil), nil >>
| "check" "service" name RuleList << ast.NewProcessCheck($2, nil, nil, $3), nil >>
| "check" "service" name ExposedList RuleList << ast.NewProcessCheck($2, nil, $3, $4), nil >>
Expand All @@ -66,8 +67,8 @@ ExposedList
;

Exposed
: name "," Exposed << ast.AddExposed($0, $2) >>
| name << ast.AddExposed($0, nil) >>
: name << ast.AddExposed($0, nil) >>
| name "," Exposed << ast.AddExposed($0, $2) >>
;

ActionList
Expand Down

0 comments on commit f12c441

Please sign in to comment.