Skip to content

Commit

Permalink
fixed tutor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Feb 26, 2024
1 parent 5190c6b commit bd95728
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
<dependency>
<groupId>org.rascalmpl</groupId>
<artifactId>rascal</artifactId>
<version>0.34.0</version>
<version>0.35.0-RC8</version>
</dependency>
<dependency>
<groupId>org.rascalmpl</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/grammars/dramb/Regression.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ If this function returns `false` then it's time to run ((drAmbiguity)) interacti
* Use this as a `test` function in your own syntax project, and run it during continuous integration testing.
:::info
It's best to use ((IO::findResources)) to locate the binary file that stores your drAmbiguity model.
It's best to use IO::findResources to locate the binary file that stores your drAmbiguity model.
:::
}
@pitfalls{
Expand Down
4 changes: 2 additions & 2 deletions src/analysis/grammars/dramb/Simplify.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Tree simplify(type[Tree] gr, Tree t, int effort=100) {
return new;
}
}

return t;
}

Expand Down Expand Up @@ -50,7 +50,7 @@ Tree simplify(Tree t) {
rand = arbInt(size(args));

if (arbBool()) {
return appl(r, [args]);
return appl(r, args);
}

return appl(r, args[..rand*delta] + args[min(rand*(delta+1), size(args))..])[@\loc=a@\loc];
Expand Down

0 comments on commit bd95728

Please sign in to comment.