-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from melt-umn/feature/env
Refactoring to environment
- Loading branch information
Showing
30 changed files
with
297 additions
and
253 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
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
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
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
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
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
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,17 +1,19 @@ | ||
grammar edu:umn:cs:melt:ableC:abstractsyntax:env; | ||
|
||
nonterminal LabelItem; | ||
|
||
-- TODO: Should consider whether we want to change the Stmt abstract syntax | ||
-- to have a LabelStmt, so we can be more specific here | ||
nonterminal LabelItem with sourceLocation; | ||
|
||
-- Note that we unfortunately can't include a reference to the labeled statement here, since these | ||
-- are function-scope defs, which need to be computed without the use of env to avoid a circular | ||
-- dependancy. | ||
abstract production labelItem | ||
top::LabelItem ::= s::Decorated Stmt | ||
top::LabelItem ::= sourceLocation::Location | ||
{ | ||
top.sourceLocation = sourceLocation; | ||
} | ||
|
||
abstract production errorLabelItem | ||
top::LabelItem ::= | ||
{ | ||
top.sourceLocation = loc("nowhere", -1, -1, -1, -1, -1, -1); | ||
} | ||
|
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
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
Oops, something went wrong.