Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<plugin>
<groupId>org.rascalmpl</groupId>
<artifactId>rascal-maven-plugin</artifactId>
<version>0.30.0-RC24</version>
<version>0.30.0</version>
<configuration>
<errorsAsWarnings>false</errorsAsWarnings>
<bin>${project.build.outputDirectory}</bin>
Expand Down Expand Up @@ -155,7 +155,7 @@
<dependency>
<groupId>org.rascalmpl</groupId>
<artifactId>rascal</artifactId>
<version>0.41.0-RC42</version>
<version>0.41.0</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/m3/LearnPrettyPrinter.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ str filesToPrettyPrinter(set[loc] files, type[node] grammar, node (loc) parser)
= treesToPrettyPrinter({parser(f) | f <- files}, grammar);

@synopsis{Takes a corpus of syntax trees (for the same language!) and produces Rascal code that can generate code back from ASTs.}
str treesToPrettyPrinter(set[node] asts, type[node] grammar) {
str treesToPrettyPrinter(set[node] asts, type[node] _grammar) {
// First we collect some general information for quick and easy reference later
// This the string contents of each file
rel[loc, str] files = {<l.top, readFile(l.top)> | n <- asts, loc l := n.src};
Expand Down
2 changes: 0 additions & 2 deletions src/lang/cpp/ASTgen.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ str type2FactoryCall(Symbol t){
case Symbol::\map(label(l1,ti),label(l2, ti2)) : return "tf.mapType(<type2FactoryCall(ti)>,\"<l1>\", <type2FactoryCall(ti2)>, \"<l2>\")";
case Symbol::\map(ti,ti2) : return "tf.mapType(<type2FactoryCall(ti)>,<type2FactoryCall(ti2)>)";
case Symbol::\tuple(tis) : return "tf.tupleType(<typeList2FactoryVarArgs(tis)>)";
case Symbol::\rel(tis) : return "tf.relType(<typeList2FactoryVarArgs(tis)>)";
case Symbol::\adt(str name, _) : return "_<name>";
default:
throw "Do not now how to construct <t>";
Expand Down Expand Up @@ -260,7 +259,6 @@ str type2FactoryCall(Symbol t){
case \bool() : return "IBool";
case \list(_) : return "IList";
case \map(_,_) : return "IMap";
case \rel(_) : return "IRelation";
case \set(_) : return "ISet";
case \loc() : return "ISourceLocation";
case \str() : return "IString";
Expand Down