-
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.
MegaParser is becoming a testing framework for the rest
- Loading branch information
1 parent
9f8808b
commit 7c92e2a
Showing
3 changed files
with
20 additions
and
14 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
13 changes: 1 addition & 12 deletions
13
topics/mega/src/MegaImplode.rsc → topics/mega/src/backend/MegaImplode.rsc
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,13 @@ | ||
@contributor{Vadim Zaytsev - vadim@grammarware.net - SWAT, CWI} | ||
module io::ReadMegaL | ||
|
||
import structure::MegaGrammar; | ||
import structure::MegaADT; | ||
import backend::MegaImplode; | ||
import ParseTree; | ||
import String; | ||
import IO; | ||
|
||
public MegaModel readPT(loc f) = parse(#MegaModel,trim(readFile(f))); | ||
|
||
public AMegaModel readAST(loc f) = backend::MegaImplode::mapmegal(readPT(f)); |