summaryrefslogtreecommitdiffstats
path: root/apps/uscxml-transform.cpp
diff options
context:
space:
mode:
authorjuehv <juehv@tk-jh-frankenstein.tk.informatik.tu-darmstadt.de>2016-06-27 09:35:46 (GMT)
committerjuehv <juehv@tk-jh-frankenstein.tk.informatik.tu-darmstadt.de>2016-06-27 09:35:46 (GMT)
commit9406c52b2515153afe71b8baef721be400fb3582 (patch)
treebe8d25cb5f655f83adc2105c056b94befa5b3d63 /apps/uscxml-transform.cpp
parentdf5a0bc2cc97425fbe2ed3947a3c9192a96a7361 (diff)
downloaduscxml-9406c52b2515153afe71b8baef721be400fb3582.zip
uscxml-9406c52b2515153afe71b8baef721be400fb3582.tar.gz
uscxml-9406c52b2515153afe71b8baef721be400fb3582.tar.bz2
restore vhdl transformation
Diffstat (limited to 'apps/uscxml-transform.cpp')
-rw-r--r--apps/uscxml-transform.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/uscxml-transform.cpp b/apps/uscxml-transform.cpp
index 6fd1bf7..de0c594 100644
--- a/apps/uscxml-transform.cpp
+++ b/apps/uscxml-transform.cpp
@@ -291,17 +291,17 @@ int main(int argc, char** argv) {
exit(EXIT_SUCCESS);
}
-// if (outType == "vhdl") {
-// if (outputFile.size() == 0 || outputFile == "-") {
-// ChartToVHDL::transform(interpreter).writeTo(std::cout);
-// } else {
-// std::ofstream outStream;
-// outStream.open(outputFile.c_str());
-// ChartToVHDL::transform(interpreter).writeTo(outStream);
-// outStream.close();
-// }
-// exit(EXIT_SUCCESS);
-// }
+ if (outType == "vhdl") {
+ if (outputFile.size() == 0 || outputFile == "-") {
+ ChartToVHDL::transform(interpreter).writeTo(std::cout);
+ } else {
+ std::ofstream outStream;
+ outStream.open(outputFile.c_str());
+ ChartToVHDL::transform(interpreter).writeTo(outStream);
+ outStream.close();
+ }
+ exit(EXIT_SUCCESS);
+ }
// if (outType == "pml") {
// if (outputFile.size() == 0 || outputFile == "-") {