-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update checkGroup.k as we no longer require groups are distinct from …
…built-ins
- Loading branch information
1 parent
4e7412e
commit 0f086cd
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// Copyright (c) Runtime Verification, Inc. All Rights Reserved. | ||
module TEST | ||
module CHECKGROUP | ||
syntax Int ::= r"[\\+-]?[0-9]+" [prefer, token, prec(2)] | ||
| Int "+" Int [group(function)] | ||
| Int "+" Int [group(fun,)] | ||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[Error] Compiler: User-defined group 'function' conflicts with a built-in attribute. | ||
[Error] Compiler: group(_) attribute expects a comma separated list of groups, each of which consists of a lower case letter followed by any number of alphanumeric or '-' characters. | ||
Source(checkGroup.k) | ||
Location(4,18,4,47) | ||
4 | | Int "+" Int [group(function)] | ||
. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Location(4,18,4,43) | ||
4 | | Int "+" Int [group(fun,)] | ||
. ^~~~~~~~~~~~~~~~~~~~~~~~~ |