Skip to content

Commit

Permalink
Moving around code for isValidRascalTplVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Sep 30, 2024
1 parent 98d1722 commit 5a34799
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import lang::rascalcore::check::ADTandGrammar;
import lang::rascal::\syntax::Rascal;
import lang::rascalcore::compile::muRascal::AST;

import lang::rascalcore::check::CheckerCommon;

import Location;
import util::Reflective;
import util::SemVer;
Expand Down Expand Up @@ -457,17 +459,17 @@ loc rascalCreateLogicalLoc(Define def, str _modelName, PathConfig pcfg){
return def.defined;
}

private str currentRascalTplVersion = "2.0.0";
// private str currentRascalTplVersion = "2.0.0";

bool isValidRascalTplVersion(str version){
return equalVersion(version, currentRascalTplVersion);
}
// bool isValidRascalTplVersion(str version){
// return equalVersion(version, currentRascalTplVersion);
// }

str getCurrentRascalTplVersion() = currentRascalTplVersion;
// str getCurrentRascalTplVersion() = currentRascalTplVersion;

data TModel (
str rascalTplVersion = "0.0.0"
);
// data TModel (
// str rascalTplVersion = "0.0.0"
// );

RascalCompilerConfig rascalCompilerConfig(PathConfig pcfg,

Expand Down

0 comments on commit 5a34799

Please sign in to comment.