Skip to content

Commit

Permalink
Fix declareSystemGenerator.
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Piskunov committed Jul 11, 2021
1 parent 6de5e12 commit d063dc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Kernel/A1$generatorSystem.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
parametersUsage = "* parameters$ is either a Sequence, a List or an Association of key-value rules. A list of " <>
"parameters can be obtained with SetReplaceSystemParameters[system$].";

declareSystemGenerator[publicSymbol_, packageScopeSymbol_, parameterValues_, property_ : Identity, usage_] := (
declareSystemGenerator[publicSymbol_, packageScopeSymbol_, parameterValues_, property_, usage_] := (
$generatorPackageScopeSymbols[publicSymbol] = packageScopeSymbol;
$generatorParameters[publicSymbol] = parameterValues;
$generatorProperties[publicSymbol] = property;
Expand Down Expand Up @@ -152,9 +152,9 @@
";

declareMessage[
General::unknownSystemParameters, "Parameters `parameters` are implemented by `system` but is not declared."];
General::unknownSystemParameters, "Parameters `parameters` are implemented by `system` but are not declared."];
declareMessage[
General::unknownGeneratorParameters, "Parameters `parameters` are set by `generator` but is not declared."];
General::unknownGeneratorParameters, "Parameters `parameters` are set by `generator` but are not declared."];

initializeSystemGenerators[] := (
$SetReplaceSystems = Sort @ Keys @ $systemImplementations;
Expand Down

0 comments on commit d063dc9

Please sign in to comment.