Skip to content
Snippets Groups Projects
Commit 455d0922 authored by Markus Alexander Kuppe's avatar Markus Alexander Kuppe
Browse files

PcalParams#tlcTranslate

[Refactor][TLC]
parent 3d2aebe3
Branches
Tags
No related merge requests found
......@@ -91,6 +91,11 @@ public final class PcalParams
* The file name if the -spec option is chosen. *
***********************************************************************/
public static boolean tlcTranslation() {
return PcalParams.SpecOption || PcalParams.MyspecOption || PcalParams.Spec2Option
|| PcalParams.Myspec2Option;
}
public static boolean WriteASTFlag = false ;
/***********************************************************************
* True if the -writeAST option is chosen. *
......
......@@ -749,10 +749,7 @@ class trans
* Translate method. *
*********************************************************************/
Vector<String> translation = null;
boolean tlcTranslation = PcalParams.SpecOption || PcalParams.MyspecOption || PcalParams.Spec2Option
|| PcalParams.Myspec2Option;
if (tlcTranslation)
if (PcalParams.tlcTranslation())
{
try
{
......@@ -936,7 +933,7 @@ class trans
* it to a model value of the same name. *
* (Added 22 Aug 2007 by LL.) *
******************************************************************/
if (tlcTranslation || ParseAlgorithm.hasDefaultInitialization)
if (PcalParams.tlcTranslation() || ParseAlgorithm.hasDefaultInitialization)
{
cfg.add(0, "CONSTANT defaultInitValue = defaultInitValue");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment