Skip to content

Commit

Permalink
Merge pull request #2001 from usethesource/adopt-tutor-code
Browse files Browse the repository at this point in the history
Merges tutor code back into the rascal project
  • Loading branch information
jurgenvinju authored Feb 4, 2025
2 parents 14e8d7b + 39a03ee commit c53a238
Show file tree
Hide file tree
Showing 40 changed files with 6,681 additions and 2 deletions.
2 changes: 1 addition & 1 deletion META-INF/RASCAL.MF
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Project-Name: rascal
Source: src/org/rascalmpl/library,test/org/rascalmpl/benchmark,test//org/rascalmpl/test/data
Source: src/org/rascalmpl/library,src/org/rascalmpl/tutor,test/org/rascalmpl/benchmark,test/org/rascalmpl/test/data
Courses: src/org/rascalmpl/courses


3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<scm>
<developerConnection>scm:git:ssh://[email protected]/usethesource/rascal.git</developerConnection>
<tag>v0.41.0-RC1</tag>
<tag>HEAD</tag>
</scm>

<!-- dependency resolution configuration (usethesource) -->
Expand Down Expand Up @@ -137,6 +137,7 @@
<bin>${project.build.outputDirectory}</bin>
<srcs>
<src>${project.basedir}/src/org/rascalmpl/library</src>
<src>${project.basedir}/src/org/rascalmpl/tutor</src>
</srcs>
<sourceLookup>|std:///|</sourceLookup>
<funding>${project.basedir}/FUNDING</funding>
Expand Down
5 changes: 5 additions & 0 deletions src/org/rascalmpl/repl/rascal/RascalInterpreterREPL.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ public void cancelRunningCommandRequested() {
eval.endAllJobs();
}

public void cleanEnvironment() {
Objects.requireNonNull(eval, "Not initialized yet");
eval.getCurrentModuleEnvironment().reset();
}

@Override
public ICommandOutput stackTraceRequested() {
Objects.requireNonNull(eval, "Not initialized yet");
Expand Down
Loading

0 comments on commit c53a238

Please sign in to comment.