-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
define/undefine/redefine, eliminate/introduce, reroot, unlabel/design…
…ate are (re)done; also, a GDT-like grammar differ is implemented in a very agile Rascal-specific way
- Loading branch information
1 parent
d170127
commit 7679623
Showing
5 changed files
with
541 additions
and
187 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@contributor{Vadim Zaytsev - vadim@grammarware.net - SWAT, CWI} | ||
@doc{Grammar Diff Tool} | ||
module diff::GDT | ||
|
||
import syntax::BGF; | ||
import List; | ||
|
||
public bool gdt(grammar(rs1,ps1), grammar(rs2,ps2)) | ||
{ | ||
if (toSet(rs1)==toSet(rs2) && toSet(ps1)==toSet(ps2)) return true; | ||
return false; | ||
} |
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.